|
PSCF v1.3.3
|
Factory for subclasses of Environment. More...
#include <EnvironmentFactory.h>
Public Member Functions | |
| EnvironmentFactory (System< D > &system) | |
| Constructor. | |
| Environment * | factory (const std::string &className) const |
| Method to create any Environment supplied with PSCF. | |
| Public Member Functions inherited from Util::Factory< Environment > | |
| Factory () | |
| Constructor. | |
| virtual | ~Factory () |
| Destructor. | |
| void | addSubfactory (Factory< Environment > &subfactory) |
| Add a new subfactory to the list. | |
| Environment * | 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. | |
| Environment * | readObjectOptional (std::istream &in, ParamComposite &parent, std::string &className, bool &isEnd) |
| Read an optional class name, instantiate an object, and read its parameters. | |
| Environment * | 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< Environment > | |
| Environment * | trySubfactories (const std::string &className) const |
| Search through subfactories for match. | |
Factory for subclasses of Environment.
Definition at line 30 of file rpg/environment/EnvironmentFactory.h.
| Pscf::Rpg::EnvironmentFactory< D >::EnvironmentFactory | ( | System< D > & | system | ) |
Constructor.
Definition at line 16 of file rpg/environment/EnvironmentFactory.tpp.
|
virtual |
Method to create any Environment supplied with PSCF.
| className | name of the Environment subclass |
Implements Util::Factory< Environment >.
Definition at line 24 of file rpg/environment/EnvironmentFactory.tpp.
References Util::Factory< Environment >::trySubfactories().