About Store Forum Documentation Contact



Post Reply 
Saving objects
Author Message
PsychoBoy Offline
Member

Post: #1
Saving objects
Hello all, how we can save objects on server, let's assume that I have:
Code:
class Object : Net::Obj
{
    UInt Id;
};
And I want to save this object (or even whole container) like:
Code:
void Object::save(File &f)
{
   super::save(f); // save default data
   f<<Id;
}
to file on server. However Net::Obj functions save and load aren't virtual. Isn't there "builded in" way?

Regards, PsychoBoy
06-02-2012 07:58 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply