Attempt 983 at the light bulb (readerwriter plugin)

Ruan Strydom ruan at jcell.co.za
Wed Oct 21 22:15:03 UTC 2009


Damn, I hope it all works. J
I did try to break it, but I am not certain that it is 100% fool proof. Plus I 
don't think I am objective enough as this is my own code.

Suggestions please...

ps: You can set permissions on directories in svn, or would this be an admin 
nightmare?

Ruan

##SAMPLE###

class Test {

public:
    class Inline {
      
    private:
        Inline * self;
    public:
        
        virtual const Test::Inline* getSelf() const = 0;
    };
   
    typedef const int & Cir;
    enum Abc {A, B, C}; 
    
    Cir m_test1;
    int &_test2;
    int t[B];
    
    
    /** Reader for m_test1.
     *  @see m_test1
     *  @return m_test1
     */
    inline Test::Cir test1() const {
        return m_test1;
    }
    
    /** Reader for _test2.
     *  @see _test2
     *  @return _test2
     */
    inline const int& test2() const {
        return _test2;
    }
    
    /** Writer for _test2.
     *  @see _test2
     *  @param t Value for _test2.
     */
    inline void setTest2( int& t ) {
        _test2 = t;
    }
    
    /** Reader for t.
     *  @see t
     *  @return t
     */
    inline const int* getT() const {
        return t;
    }
    
    /** Writer for t.
     *  @see t
     *  @param _t Value for t.
     */
    inline void setT( const int _t[1] ) { /*TODO*/
        for (int i; i<1; i++) t[i] = _t[i];
    }
};
-------------- next part --------------
A non-text attachment was scrubbed...
Name: readerwriter_02.tar.gz
Type: application/x-compressed-tar
Size: 12200 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20091022/879d3706/attachment.tar.gz>


More information about the KDevelop-devel mailing list