Definition at line 16 of file PDSSFactory.h.
|
| void | deleteFactory () override |
| | delete the static instance of this factory
|
| |
| PDSS * | newPDSS (const string &model) |
| | Create a new thermodynamic property manager.
|
| |
| PDSS * | create (const string &name, Args... args) |
| | Create an object using the object construction function corresponding to "name" and the provided constructor arguments.
|
| |
| void | reg (const string &name, function< PDSS *(Args...)> f) |
| | Register a new object construction function.
|
| |
| void | addAlias (const string &original, const string &alias) |
| | Add an alias for an existing registered type.
|
| |
| string | canonicalize (const string &name) |
| | Get the canonical name registered for a type.
|
| |
| bool | exists (const string &name) const |
| | Returns true if name is registered with this factory.
|
| |
| virtual | ~FactoryBase () |
| | destructor
|
| |
|
| static PDSSFactory * | factory () |
| | Static function that creates a static instance of the factory.
|
| |
| static void | deleteFactories () |
| | static function that deletes all factories in the internal registry maintained in a static variable
|
| |
|
| void | addDeprecatedAlias (const string &original, const string &alias) |
| | Add a deprecated alias for an existing registered type.
|
| |
| | FactoryBase () |
| | Constructor.
|
| |
| virtual void | deleteFactory ()=0 |
| | Virtual abstract function that deletes the factory.
|
| |
◆ PDSSFactory()
◆ factory()
Static function that creates a static instance of the factory.
Definition at line 34 of file PDSSFactory.cpp.
◆ deleteFactory()
◆ newPDSS()
| PDSS * newPDSS |
( |
const string & |
model | ) |
|
Create a new thermodynamic property manager.
- Parameters
-
| model | String to look up the model against |
- Returns
- a pointer to a new PDSS instance matching the model string. Returns NULL if something went wrong. Throws an exception if the string wasn't matched.
Definition at line 48 of file PDSSFactory.cpp.
◆ s_factory
static member of a single instance
Definition at line 36 of file PDSSFactory.h.
◆ thermo_mutex
Decl for locking mutex for thermo factory singleton.
Definition at line 42 of file PDSSFactory.h.
The documentation for this class was generated from the following files: