CLAM::Storage Class Reference

The abstract class for storages. More...

#include <Storage.hxx>

Inheritance diagram for CLAM::Storage:

CLAM::XmlStorage

List of all members.

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.


Detailed Description

The abstract class for storages.

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.


Constructor & Destructor Documentation

virtual CLAM::Storage::~Storage (  )  [inline, virtual]

Definition at line 57 of file Storage.hxx.


Member Function Documentation

virtual void CLAM::Storage::Store ( const Storable &  object  )  [pure virtual]

virtual bool CLAM::Storage::Load ( Storable &  object  )  [pure virtual]

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.

Parameters:
A pointer to the Storage object. No references will be keept on the storage.
Returns:
false when the desired object is not present in 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::Network::LoadFrom(), CLAM::InformationTextAdapter::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().


The documentation for this class was generated from the following file:

Generated on Mon Oct 18 20:36:38 2010 for CLAM-Development by  doxygen 1.5.6