Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members

MoleculeObjectCreator Class Reference
[Object Persistence.]

MoleculeObjectCreator class. More...

#include <moleculeObjectCreator.h>

Inheritance diagram for MoleculeObjectCreator:

ObjectCreator List of all members.

Public Member Functions

Constructors
 MoleculeObjectCreator () throw ()
 Default Constructor.
Destructors
virtual ~MoleculeObjectCreator () throw ()
 Destructor.
virtual void clear () throw ()
 Explicit default initialization.
Accessors: inspectors and mutators
virtual void initPersistenceManager (TextPersistenceManager &pm) throw ()
 Initializes the TextPersistenceManager of this moleculeObjectCreator.
virtual CompositeconvertObject (PersistentObject &po) throw ()
 Converts persistent objects.

Detailed Description

MoleculeObjectCreator class.

The class MoleculeObjectCreator is a class for converting PersistentObject objects that represent molecular structures into Composite objects. Objects that do not represent molecular structures will not be converted. All necessary initialization and registration of molecular structure patterns will be done in the method initPersistenceManager. The conversion will be executed in the method convertObject. This class is used by the class Server to convert incoming PersistentObject objects to Composite objects.


Constructor & Destructor Documentation

MoleculeObjectCreator::MoleculeObjectCreator  )  throw ()
 

Default Constructor.

virtual MoleculeObjectCreator::~MoleculeObjectCreator  )  throw () [virtual]
 

Destructor.


Member Function Documentation

virtual void MoleculeObjectCreator::clear  )  throw () [virtual]
 

Explicit default initialization.

Calls ObjectCreator::clear.

Reimplemented from ObjectCreator.

virtual Composite* MoleculeObjectCreator::convertObject PersistentObject po  )  throw () [virtual]
 

Converts persistent objects.

If po is an object that represents a molecular structure (an Atom, Protein or System) it will be converted into a Composite object and returned. If it is none of the above 0 will be returned. 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
See also:
initPersistenceManager

Reimplemented from ObjectCreator.

virtual void MoleculeObjectCreator::initPersistenceManager TextPersistenceManager pm  )  throw () [virtual]
 

Initializes the TextPersistenceManager of this moleculeObjectCreator.

Registers all necessary molecular structures available in BALL. See TextPersistenceManager for information on how and why to register PersistentObject classes.

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

convertObject

Reimplemented from ObjectCreator.