[serialization] writing private variables

16 Jul
2011
16 Jul
'11
6:05 a.m.
Hi: Is there a way to tell the serialization library to write private members. The members do have functions to get/set there values, but as far I know the serialization subsystem doesn't call these. Cheers Sean.

16 Jul
16 Jul
6:04 p.m.
Sean Farrow wrote:
Hi: Is there a way to tell the serialization library to write private members. The members do have functions to get/set there values, but as far I know the serialization subsystem doesn't call these. Cheers Sean.
You can make the serialization functions as member functions. That's likely the most common way. You could also include a friend declaration in your class. Robert Ramey
5009
Age (days ago)
5009
Last active (days ago)
1 comments
2 participants
participants (2)
-
Robert Ramey
-
Sean Farrow