Page 1 of 1

use register_class with private members

PostPosted: Tue Apr 10, 2012 11:51 am
by Mirko
Hi all,
I'd want to register the private members of a class (for sake of encapsulation) but it does not allow it.

Is there any workaround?

Mirko

Re: use register_class with private members

PostPosted: Tue Apr 10, 2012 12:08 pm
by QxOrm admin
Hi,

Just use QX_REGISTER_FRIEND_CLASS(myClass) macro (it is just a friend class declaration).

For an example, you can see CPerson class : open the file "./test/qxDllSample/dll1/include/CPerson.h".

Re: use register_class with private members

PostPosted: Tue Apr 10, 2012 12:26 pm
by Mirko
Cheers Martin.

Mirko