BALL::ObjectCreator Class Reference

ObjectCreator class. More...

#include <objectCreator.h>

Inheritance diagram for BALL::ObjectCreator:
Inheritance graph
[legend]

List of all members.


Public Member Functions

Constructors
ObjectCreator ()
Default Constructor.
Destructors
virtual ~ObjectCreator ()
Destructor.
virtual void clear ()
Explicit default initialization.
Accessors: inspectors and mutators
virtual void initPersistenceManager (TextPersistenceManager &pm)
Initialize the persistence manager.
virtual Composite * convertObject (PersistentObject &po)
Convert persistent objects.

Detailed Description

ObjectCreator class.

The class ObjectCreator is a base class for converting PersistentObject objects into Composite objects. It defines methods for initialization and conversion that must be overriden by the derived class. This class is used by the class Server to convert incoming PersistentObject objects to Composite objects.


Constructor & Destructor Documentation

BALL::ObjectCreator::ObjectCreator ( )

Default Constructor.

Construct new objectCreator. The state of this server is: TextPersistenceManager not initialized.

Returns:
ObjectCreator new constructed objectCreator
See also:
TextPersistenceManager

Member Function Documentation

virtual void BALL::ObjectCreator::clear ( ) [virtual]

Explicit default initialization.

Empty for further purpose.

Reimplemented in BALL::MoleculeObjectCreator.

virtual Composite* BALL::ObjectCreator::convertObject ( PersistentObject & po ) [virtual]

Convert persistent objects.

Override this method to convert PersistentObject objects to Composite objects. See TextPersistenceManager for information on how to convert PersistentObject objects into other objects.

Parameters:
po a reference to a PersistentObject to be converted
Returns:
Composite* a converted Composite object if po could successfully be converted into a Composite object

Reimplemented in BALL::MoleculeObjectCreator.

virtual void BALL::ObjectCreator::initPersistenceManager ( TextPersistenceManager & pm ) [virtual]

Initialize the persistence manager.

Initialize the TextPersistenceManager of this objectCreator. Override this method to initialize the persistence manager for specified objects. See TextPersistenceManager for information on how and why to register PersistentObject classes.

Parameters:
pm the TextPersistenceManager to be initialized
See also:
TextPersistenceManager

Reimplemented in BALL::MoleculeObjectCreator.


Generated on Thu Aug 6 18:30:26 2009 for BALL by doxygen 1.5.8