|
Simpatico
v1.10
|
CommandFactory for an McSimulation.
Definition at line 28 of file McCommandFactory.h.
#include <McCommandFactory.h>
Public Member Functions | |
| McCommandFactory (McSimulation &simulation, McSystem &system) | |
| Constructor. More... | |
| virtual Command * | factory (const std::string &className) const |
| Return pointer to a new Command object. More... | |
Public Member Functions inherited from Util::Factory< Command > | |
| Factory () | |
| Constructor. More... | |
| virtual | ~Factory () |
| Destructor. More... | |
| void | addSubfactory (Factory< Command > &subfactory) |
| Add a new subfactory to the list. More... | |
| Command * | readObject (std::istream &in, ParamComposite &parent, std::string &className, bool &isEnd) |
| Read a class name, instantiate an object, and read its parameters. More... | |
| Command * | loadObject (Serializable::IArchive &ar, ParamComposite &parent, std::string &className) |
| Load a class name, instantiate an object, and load the object. More... | |
Protected Member Functions | |
| McSystem & | system () const |
| Return reference to parent McSystem. More... | |
| McSimulation & | simulation () const |
| Return reference to parent McSimulation. More... | |
Protected Member Functions inherited from Util::Factory< Command > | |
| Command * | 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... | |
| McMd::McCommandFactory::McCommandFactory | ( | McSimulation & | simulation, |
| McSystem & | system | ||
| ) |
Constructor.
| simulation | parent McSimulation |
| system | parent McSystem |
Definition at line 24 of file McCommandFactory.cpp.
|
virtual |
Return pointer to a new Command object.
| className | name of a subclass of Command. |
Implements Util::Factory< Command >.
Definition at line 33 of file McCommandFactory.cpp.
References system(), and Util::Factory< Command >::trySubfactories().
|
inlineprotected |
Return reference to parent McSystem.
Definition at line 54 of file McCommandFactory.h.
Referenced by factory().
|
inlineprotected |
Return reference to parent McSimulation.
Definition at line 60 of file McCommandFactory.h.
1.8.11