|
PSCF v1.3.3
|
Factory for subclasses of TrajectoryReader. More...
#include <TrajectoryReaderFactory.h>
Public Member Functions | |
| TrajectoryReaderFactory (System< D > &system) | |
| Constructor. | |
| TrajectoryReader< D > * | factory (const std::string &className) const |
| Method to create any TrajectoryReader supplied with PSCF. | |
| Public Member Functions inherited from Util::Factory< TrajectoryReader< D > > | |
| Factory () | |
| Constructor. | |
| virtual | ~Factory () |
| Destructor. | |
| void | addSubfactory (Factory< TrajectoryReader< D > > &subfactory) |
| Add a new subfactory to the list. | |
| TrajectoryReader< D > * | 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 > * | 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 > * | 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 > > | |
| TrajectoryReader< D > * | trySubfactories (const std::string &className) const |
| Search through subfactories for match. | |
Factory for subclasses of TrajectoryReader.
Definition at line 28 of file rpc/fts/trajectory/TrajectoryReaderFactory.h.
| Pscf::Rpc::TrajectoryReaderFactory< D >::TrajectoryReaderFactory | ( | System< D > & | system | ) |
Constructor.
Definition at line 20 of file rpc/fts/trajectory/TrajectoryReaderFactory.tpp.
|
virtual |
Method to create any TrajectoryReader supplied with PSCF.
| className | name of the TrajectoryReader subclass |
Implements Util::Factory< TrajectoryReader< D > >.
Definition at line 29 of file rpc/fts/trajectory/TrajectoryReaderFactory.tpp.
References Util::Factory< TrajectoryReader< D > >::trySubfactories().