|
PSCF v1.5.0
|
Factory for subclasses of Compressor. More...
#include <CompressorFactory.h>
Public Member Functions | |
| CompressorFactory (System< D, T > &system) | |
| Constructor. | |
| Compressor< D, T > * | factory (const std::string &className) const |
| Method to create any Compressor supplied with PSCF. | |
| Public Member Functions inherited from Util::Factory< Compressor< D, T > > | |
| Factory () | |
| Constructor. | |
| virtual | ~Factory () |
| Destructor. | |
| void | addSubfactory (Factory< Compressor< D, T > > &subfactory) |
| Add a new subfactory to the list. | |
| Compressor< 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. | |
| Compressor< 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. | |
| Compressor< 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< Compressor< D, T > > | |
| Compressor< D, T > * | trySubfactories (const std::string &className) const |
| Search through subfactories for match. | |
Factory for subclasses of Compressor.
Definition at line 32 of file CompressorFactory.h.
| Pscf::Rp::CompressorFactory< D, T >::CompressorFactory | ( | System< D, T > & | system | ) |
Constructor.
Definition at line 23 of file CompressorFactory.tpp.
Referenced by Pscf::Rp::Simulator< D, T >::Simulator().
|
virtual |
Method to create any Compressor supplied with PSCF.
| className | name of the Compressor subclass |
Implements Util::Factory< Compressor< D, T > >.
Definition at line 32 of file CompressorFactory.tpp.
References Util::Factory< Compressor< D, T > >::trySubfactories().