#include <machine/SimulatorRegistry.hpp>
◆ addGenerator()
Creates a generator and adds it in the registry if everything went fine
- Parameters
-
[in] | Specs | the specifications of the generator to create |
- Returns
- the ID of the generator if successfully added, an empty string otherwise
◆ addWare()
◆ clear()
void openfluid::machine::SimulatorRegistry::clear |
( |
| ) |
|
|
inlinevirtual |
◆ clearGenerators()
void openfluid::machine::SimulatorRegistry::clearGenerators |
( |
| ) |
|
|
inline |
Clears the generators stored in the registry
◆ discoverWares() [1/2]
void openfluid::machine::SimulatorRegistry::discoverWares |
( |
bool |
WithGhosts, |
|
|
const std::string |
IDPattern = "" |
|
) |
| |
Automatically discovers simulators wares (plugins and optionnaly ghosts) and adds it in the registry, optionally filtered on IDs using a given pattern
- Parameters
-
[in] | WithGhosts | enable/disable the search for ghosts simulators |
[in] | IDPattern | the pattern to filter the wares on ID. Default is empty (no filtering) |
◆ discoverWares() [2/2]
void openfluid::machine::SimulatorRegistry::discoverWares |
( |
const std::string |
IDPattern = "" | ) |
|
|
virtual |
◆ generatorContainer()
Returns the container of the generator given by its ID
- Parameters
-
- Returns
- The container of the requested generator, an invalid container if not found
◆ generators()
const WaresByID_t& openfluid::machine::SimulatorRegistry::generators |
( |
| ) |
const |
|
inline |
Returns the created generators, indexed by ID
- Returns
- an ID-container map of generators
◆ hasGenerator()
Returns true if a generator already exists with the given ID
- Parameters
-
[in] | ID | The ID of the generator |
- Returns
- true if the generator exists
◆ wareOrGeneratorContainer()
Returns the container of the simulator ware or the generator given by its ID. It searches first in the available simulators then in the created generators.
- Parameters
-
[in] | ID | The ID of the simulator or generator |
- Returns
- The container of the requested ware, an invalid container if not found
The documentation for this class was generated from the following file: