#include <Storage.hxx>
An storage is a place where you can save and/or retrieve objects state. Subclasses of Storage will implement the way the storage and loading is done.
Definition at line 53 of file Storage.hxx.
Public Member Functions | |
virtual | ~Storage () |
virtual void | Store (const Storable &object)=0 |
Stores an storable object on the storage. | |
virtual bool | Load (Storable &object)=0 |
Loads an storable object from the storage. |
virtual CLAM::Storage::~Storage | ( | ) | [inline, virtual] |
Definition at line 57 of file Storage.hxx.
virtual void CLAM::Storage::Store | ( | const Storable & | object | ) | [pure virtual] |
Stores an storable object on the storage.
Concrete storages must implement this function as they need.
Once executed the function, no references to the actual storable or its subitems will be kept on the storage so the object itself can be deleted.
A | pointer to the Storage object. No references will be keept on the storage. |
Implemented in CLAM::XmlStorage.
Referenced by CLAM::DynamicType::StoreAttribute(), CLAM::DynamicType::StoreIterableAttribute(), CLAM::Segmentation::StoreOn(), CLAM::ScopePool::StoreOn(), CLAM::ProcessingDefinitionAdapter::StoreOn(), CLAM::DescriptionDataPool::StoreOn(), CLAM::Polymorphic< FactoryType >::StoreOn(), CLAM::FlattenedNetwork::StoreOn(), CLAM::FlagsBase::StoreOn(), CLAM::Enum::StoreOn(), CLAM::DescriptionScheme::StoreOn(), CLAM::AbstractAttribute::StoreOn(), CLAM::ControlTraceData::StoreOn(), CLAM::ControlTraceEvent::StoreOn(), CLAM::ConnectionDefinitionAdapter::StoreOn(), CLAM::BPFTmpl< TX, TY >::StoreOn(), CLAM::Attribute< AttributeType >::XmlDumpData(), and CLAM::Attribute< AttributeType >::XmlDumpSchemaType().
Loads an storable object from the storage.
Concrete storages must implement this function as they need.
Once executed the function, no references to the actual storable or its subitems will be kept on the storage so the object itself can be deleted.
A | pointer to the Storage object. No references will be keept on the storage. |
Implemented in CLAM::XmlStorage.
Referenced by CLAM::DynamicType::LoadAttribute(), CLAM::Segmentation::LoadFrom(), CLAM::ScopePool::LoadFrom(), CLAM::ProcessingDefinitionAdapter::LoadFrom(), CLAM::DescriptionDataPool::LoadFrom(), CLAM::Polymorphic< FactoryType >::LoadFrom(), CLAM::FlattenedNetwork::LoadFrom(), CLAM::FlagsBase::LoadFrom(), CLAM::Enum::LoadFrom(), CLAM::DescriptionScheme::LoadFrom(), CLAM::ControlTraceData::LoadFrom(), CLAM::ControlTraceEvent::LoadFrom(), CLAM::ConnectionDefinitionAdapter::LoadFrom(), CLAM::BPFTmpl< TX, TY >::LoadFrom(), CLAM::DynamicType::LoadIterableAttribute(), and CLAM::Attribute< AttributeType >::XmlRestoreData().