|
Simpatico
v1.10
|
Default Factory for subclasses of ConfigWriter.
Definition at line 27 of file ConfigWriterFactory.h.
#include <ConfigWriterFactory.h>
Public Member Functions | |
| ConfigWriterFactory (Configuration &configuration) | |
| Constructor. More... | |
| ConfigWriter * | factory (const std::string &subclassName) const |
| Create an instance of a specified subclass of ConfigWriter. More... | |
Public Member Functions inherited from Util::Factory< ConfigWriter > | |
| Factory () | |
| Constructor. More... | |
| virtual | ~Factory () |
| Destructor. More... | |
| void | addSubfactory (Factory< ConfigWriter > &subfactory) |
| Add a new subfactory to the list. More... | |
| ConfigWriter * | readObject (std::istream &in, ParamComposite &parent, std::string &className, bool &isEnd) |
| Read a class name, instantiate an object, and read its parameters. More... | |
| ConfigWriter * | 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< ConfigWriter > | |
| ConfigWriter * | 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... | |
| Tools::ConfigWriterFactory::ConfigWriterFactory | ( | Configuration & | configuration | ) |
Constructor.
| configuration | parent Configuration object |
Definition at line 22 of file ConfigWriterFactory.cpp.
|
virtual |
Create an instance of a specified subclass of ConfigWriter.
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.
| subclassName | name of a subclass of ConfigWriter |
Implements Util::Factory< ConfigWriter >.
Definition at line 29 of file ConfigWriterFactory.cpp.
References Util::Factory< ConfigWriter >::trySubfactories().
Referenced by Tools::Processor::setConfigWriter().
1.8.11