|
PSCF v1.5.0
|
Factory for subclasses of TrajectoryReader. More...
#include <TrajectoryReaderFactory.h>
Public Member Functions | |
| TrajectoryReader< D, T > * | factory (const std::string &className) const |
| Create and instance of a specified subclass of TrajectoryReader. | |
| Public Member Functions inherited from Util::Factory< TrajectoryReader< D, T > > | |
| Factory () | |
| Constructor. | |
| virtual | ~Factory () |
| Destructor. | |
| void | addSubfactory (Factory< TrajectoryReader< D, T > > &subfactory) |
| Add a new subfactory to the list. | |
| TrajectoryReader< D, T > * | readObject (std::istream &in, ParamComposite &parent, std::string &className, bool &isEnd, bool isRequired=true) |
| Read a class name, instantiate an object, and read its parameters. | |
| TrajectoryReader< D, T > * | readObjectOptional (std::istream &in, ParamComposite &parent, std::string &className, bool &isEnd) |
| Read an optional class name, instantiate an object, and read its parameters. | |
| TrajectoryReader< D, T > * | loadObject (Serializable::IArchive &ar, ParamComposite &parent, std::string &className) |
| Load a class name, instantiate an object, and load the object. | |
Additional Inherited Members | |
| Protected Member Functions inherited from Util::Factory< TrajectoryReader< D, T > > | |
| TrajectoryReader< D, T > * | trySubfactories (const std::string &className) const |
| Search through subfactories for match. | |
Factory for subclasses of TrajectoryReader.
Definition at line 35 of file TrajectoryReaderFactory.h.
|
virtual |
Create and instance of a specified subclass of TrajectoryReader.
| className | name of the TrajectoryReader subclass |
Implements Util::Factory< TrajectoryReader< D, T > >.
Definition at line 32 of file TrajectoryReaderFactory.tpp.
References factory(), and Util::Factory< TrajectoryReader< D, T > >::trySubfactories().
Referenced by factory().