#include <Store3.h>
Public Member Functions | |
virtual GDataI & | operator= (GDataI &p)=0 |
Copy all the values from 'p' over to this object. | |
virtual int | Type ()=0 |
virtual bool | IsOnDisk ()=0 |
virtual bool | IsOrphan ()=0 |
virtual uint64 | Size ()=0 |
virtual bool | Save (GDataI *Parent=0)=0 |
virtual Store3Status | Delete ()=0 |
virtual GDataStoreI * | GetStore ()=0 |
Gets the storage that this object belongs to. | |
virtual GAutoStreamI | GetStream (const char *file, int line)=0 |
virtual bool | SetStream (GAutoStreamI stream) |
virtual int GDataI::Type | ( | ) | [pure virtual] |
Returns the type of object
virtual bool GDataI::IsOnDisk | ( | ) | [pure virtual] |
virtual bool GDataI::IsOrphan | ( | ) | [pure virtual] |
virtual uint64 GDataI::Size | ( | ) | [pure virtual] |
virtual bool GDataI::Save | ( | GDataI * | Parent = 0 |
) | [pure virtual] |
Saves the object to disk. If this function fails the object is deleted, so if it returns false, stop using the ptr you have to it.
virtual Store3Status GDataI::Delete | ( | ) | [pure virtual] |
Delete the on disk representation of the object. This will cause GDataEventsI::OnDelete to be called after which this object will be freed from heap memory automatically. So Once you call this method assume the object pointed at is gone.
virtual GAutoStreamI GDataI::GetStream | ( | const char * | file, | |
int | line | |||
) | [pure virtual] |
virtual bool GDataI::SetStream | ( | GAutoStreamI | stream | ) | [inline, virtual] |
Sets the stream, which is used during the next call to GDataI::Save, which also deletes the object when it's used. The caller loses ownership of the object passed into this function.