Attempt 983 at the light bulb (readerwriter plugin)
Aleix Pol
aleixpol at kde.org
Wed Oct 21 19:54:38 UTC 2009
On Thu, Oct 22, 2009 at 12:15 AM, Ruan Strydom <ruan at jcell.co.za> wrote:
> 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];
> }
> };
>
> --
> KDevelop-devel mailing list
> KDevelop-devel at kdevelop.org
> https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel
>
>
Have you thought of defining the Q_PROPERTY in QObjects? That would be nice.
Looks nice, btw :)
Aleix
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20091021/5a0a24d1/attachment.html>
More information about the KDevelop-devel
mailing list