J
Josh Mcfarlane
I'm doing recomposition of objects from binary streams, and the best
way for me to write them out is to write base class data first, forward
to inherited classes, pointer class values, etc.
Now, when recomposing these objects, I first read the base class data,
and can create a base object.
When I find the inherited class marker, can I call have the inherited
class use the prior base object to population the inherited class's
base object?
If so, would this have to be done in the constructor, or could I do
this using an initialization list?
Thanks,
Josh McFarlane
way for me to write them out is to write base class data first, forward
to inherited classes, pointer class values, etc.
Now, when recomposing these objects, I first read the base class data,
and can create a base object.
When I find the inherited class marker, can I call have the inherited
class use the prior base object to population the inherited class's
base object?
If so, would this have to be done in the constructor, or could I do
this using an initialization list?
Thanks,
Josh McFarlane