class Object
{public:
void ComputeDebugString();// puts the debug strings of all its
// members, as well as object specific information
// into the variable DebugString
std::string DebugString;
};
What is your style of doing this? (Just gathering good tips, thanks in advance!)
This article could help a little but is an advanced concept. I don't know if there are similar articles on this site but you could certainly search the internet for other examples as well as the forums themselves for related threads. http://www.codeguru.com/forum/showthread.php?t=401691
You've got the correct idea though. It is good to be thinking of creative ways of capturing the state of your objects so that they can be inserted into a stream.