On 08/08/06, Simon Laws <[EMAIL PROTECTED]> wrote:
Well you can construct expressions in gdb and have them execute but its not as convenient as having the code do it for you. Taking both points of view on board how about a function that you can call on the data object that prints its contents out that is only compiled in for debug, i.e. subject of a #define. Removes the need for the unitiated to go searching for the util method but doesn't rely on the data object keeping a string representation up to date on every change.
Isn't this called serialization? ;-) actually I did code at one one point an ostream operator so you could code: cout << myDO; ... but then I was going to use the >> and << operators to do the xml serialisation. Given that the xml serialization is now handled by the XMLHelper it may be worth looking at putting an ostream operator<< back in. Cheers, -- Pete
