Simpatico  v1.10
List of all members | Public Member Functions
Tools::TrajectoryReaderFactory Class Reference

Detailed Description

Default Factory for subclasses of TrajectoryReader.

Definition at line 27 of file tools/trajectory/TrajectoryReaderFactory.h.

#include <TrajectoryReaderFactory.h>

Inheritance diagram for Tools::TrajectoryReaderFactory:
Util::Factory< TrajectoryReader >

Public Member Functions

 TrajectoryReaderFactory (Configuration &configuration)
 Constructor. More...
 
TrajectoryReaderfactory (const std::string &subclassName) const
 Create an instance of a specified subclass of TrajectoryReader. More...
 
- Public Member Functions inherited from Util::Factory< TrajectoryReader >
 Factory ()
 Constructor. More...
 
virtual ~Factory ()
 Destructor. More...
 
void addSubfactory (Factory< TrajectoryReader > &subfactory)
 Add a new subfactory to the list. More...
 
TrajectoryReader * readObject (std::istream &in, ParamComposite &parent, std::string &className, bool &isEnd)
 Read a class name, instantiate an object, and read its parameters. More...
 
TrajectoryReader * loadObject (Serializable::IArchive &ar, ParamComposite &parent, std::string &className)
 Load a class name, instantiate an object, and load the object. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Util::Factory< TrajectoryReader >
TrajectoryReader * trySubfactories (const std::string &className) const
 Search through subfactories for match. More...
 
void setIoCommunicator (MPI::Intracomm &communicator)
 Set associated Mpi communicator. More...
 
bool hasIoCommunicator () const
 Does this factory have a param communicator? More...
 

Constructor & Destructor Documentation

Tools::TrajectoryReaderFactory::TrajectoryReaderFactory ( Configuration configuration)

Constructor.

Parameters
configurationparent Configuration object

Definition at line 22 of file tools/trajectory/TrajectoryReaderFactory.cpp.

Member Function Documentation

TrajectoryReader * Tools::TrajectoryReaderFactory::factory ( const std::string &  subclassName) const
virtual

Create an instance of a specified subclass of TrajectoryReader.

If the subclassName is recognized, this method returns a pointer to new object. If the name is not recognized, it returns a null pointer.

The new object is created using a constructor that takes the parent Tools::Configuration as a parameter. The calling function must invoke DdMd::TrajectoryReader::initialize() before using the new TrajectoryReader to read or write configuration files.

Parameters
subclassNamename of a subclass of TrajectoryReader
Returns
TrajectoryReader* pointer to new instance of subclassName

Implements Util::Factory< TrajectoryReader >.

Definition at line 29 of file tools/trajectory/TrajectoryReaderFactory.cpp.

References Util::Factory< TrajectoryReader >::trySubfactories().

Referenced by Tools::Processor::setTrajectoryReader().


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