k3d::ipersistent_collection Class Reference

Encapsulates a collection of named, serializable objects. More...

#include <ipersistent_collection.h>

Inheritance diagram for k3d::ipersistent_collection:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual void enable_serialization (const string_t &Name, ipersistent &Object)=0
 Add a serializable object to the collection, specifying its name. Note that names are constrained to be unique within the collection.
virtual void disable_serialization (ipersistent &Object)=0
 Remove a serializable object from the collection.
virtual const std::vector
< std::pair< string_t,
ipersistent * > > 
persistent_objects ()=0
 Returns the set of serializable objects and their names, in the order they were added.

Protected Member Functions

 ipersistent_collection ()
 ipersistent_collection (const ipersistent_collection &Other)
ipersistent_collectionoperator= (const ipersistent_collection &)
virtual ~ipersistent_collection ()

Detailed Description

Encapsulates a collection of named, serializable objects.


Constructor & Destructor Documentation

k3d::ipersistent_collection::ipersistent_collection (  )  [inline, protected]
k3d::ipersistent_collection::ipersistent_collection ( const ipersistent_collection Other  )  [inline, protected]
virtual k3d::ipersistent_collection::~ipersistent_collection (  )  [inline, protected, virtual]

Member Function Documentation

virtual void k3d::ipersistent_collection::disable_serialization ( ipersistent Object  )  [pure virtual]

Remove a serializable object from the collection.

Implemented in k3d::persistent_property_collection.

Referenced by k3d::user::property_container::restore_state().

virtual void k3d::ipersistent_collection::enable_serialization ( const string_t Name,
ipersistent Object 
) [pure virtual]

Add a serializable object to the collection, specifying its name. Note that names are constrained to be unique within the collection.

Implemented in k3d::persistent_property_collection.

Referenced by k3d::user::property_container::restore_state().

ipersistent_collection& k3d::ipersistent_collection::operator= ( const ipersistent_collection  )  [inline, protected]
virtual const std::vector<std::pair<string_t, ipersistent*> > k3d::ipersistent_collection::persistent_objects (  )  [pure virtual]

Returns the set of serializable objects and their names, in the order they were added.

Implemented in k3d::persistent_property_collection.

Referenced by k3d::user::property_container::property_container(), and k3d::user::property_container::restore_state().


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

Generated on Mon Mar 21 07:41:56 2011 for K-3D by doxygen 1.6.3