use register_class with private members

Forum for posting problems using QxOrm library

use register_class with private members

Postby Mirko » Tue Apr 10, 2012 11:51 am

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
Mirko
 

Re: use register_class with private members

Postby QxOrm admin » Tue Apr 10, 2012 12:08 pm

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".
QxOrm admin
 

Re: use register_class with private members

Postby Mirko » Tue Apr 10, 2012 12:26 pm

Cheers Martin.

Mirko
Mirko
 


Return to QxOrm - Help

Who is online

Users browsing this forum: No registered users and 8 guests