I have been using the CommonC++ libraries extensively in the current project I am working on (mainly keydata, and TCPStream. Currently I am attempting to implement persistence with not much success. I have come across a couple of problems so far, firstly in the DECLARE_PERSISTENCE macro, for the definition of the overload to the << operator :
friend Engine & operator<<(Engine& ar, ClassType const *&ob);
should there be a '&' before ob? (The DECLARE and IMPLEMENT macros implement the << operator differently)
Secondly, is there any simple examples available that show how to use persistence (just the basics)?
Regards
Mark
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
There is a "simple" example that uses the persistance engine to process a HTML document! But unfortunately I did not have any involvement in writing the persistance/serialization engine so it may be awhile before I can check thru this problem.
David
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have been using the CommonC++ libraries extensively in the current project I am working on (mainly keydata, and TCPStream. Currently I am attempting to implement persistence with not much success. I have come across a couple of problems so far, firstly in the DECLARE_PERSISTENCE macro, for the definition of the overload to the << operator :
friend Engine & operator<<(Engine& ar, ClassType const *&ob);
should there be a '&' before ob? (The DECLARE and IMPLEMENT macros implement the << operator differently)
Secondly, is there any simple examples available that show how to use persistence (just the basics)?
Regards
Mark
There is a "simple" example that uses the persistance engine to process a HTML document! But unfortunately I did not have any involvement in writing the persistance/serialization engine so it may be awhile before I can check thru this problem.
David