#include <AnyData.h>

Public Member Functions | |
| virtual | ~AnyData () |
| virtual AnyData * | copy () const |
| virtual bool | serialize (SessionItemSerializer &serializer) const |
| virtual bool | deserialize (SessionItemDeserializer &deserializer) |
Protected Member Functions | |
| AnyData () | |
This class serves as a common base class for custom data classes to be set into an Any element. The constructor is protected since this base class does not contain any actual data and should not be instantiated.
Definition at line 23 of file AnyData.h.
| virtual AnyData::~AnyData | ( | ) | [virtual] |
| AnyData::AnyData | ( | ) | [protected] |
| virtual AnyData* AnyData::copy | ( | ) | const [virtual] |
Creates a copy of the custom data.
This method is called when the Any::copy() method is called to copy the data element. The default implementation of this method returns NULL so subclasses should override this method to create a new instance of the object and copy the actual data. Each subclass can define whether it performs a deep copy or a shallow copy.
Reimplemented in DataVariantAnyData.
| virtual bool AnyData::serialize | ( | SessionItemSerializer & | serializer | ) | const [virtual] |
Serializes the AnyData during save session.
This is equivalent to SessionItem::serialize() for AnyData objects.
| serializer | The object to use to save the item as part of the current ` session. |
true.Reimplemented in DataVariantAnyData.
| virtual bool AnyData::deserialize | ( | SessionItemDeserializer & | deserializer | ) | [virtual] |
Deserializes the AnyData during restore session.
This is equivalent to SessionItem::deserialize() for AnyData objects.
| deserializer | The object to use to restore the item from a saved session. |
true.Reimplemented in DataVariantAnyData.