|
Documentation for OpenFLUID
2.2.0
|
Management class for pluggable wares
| SignatureType | class defining the signature type for the ware category |
| BodyType | class defining the body type for the ware category |
| SignatureProc | procedure definition for instantiation of the signature |
| BodyProc | procedure definition for instantiation of the body |
#include <machine/WarePluginsManager.hpp>
Public Member Functions | |
| virtual | ~WarePluginsManager () |
| virtual std::string | getPluginFullPath (const std::string &Filename) const =0 |
| virtual std::vector< std::string > | getPluginsSearchPaths () const =0 |
| virtual std::string | getPluginFilenameSuffix () const =0 |
| WareContainer< SignatureType > | loadPlugin (const std::string &ID) |
| std::vector< WareContainer< SignatureType > > | loadPlugins (const std::string &IDPattern="") |
| BodyType * | getWareBody (const WareContainer< SignatureType > &Container) |
| void | unloadAll () |
Protected Member Functions | |
| WarePluginsManager () | |
Protected Attributes | |
| std::map< std::string, std::unique_ptr< DynamicLib > > | m_LoadedPluginsLibraries |
|
inlineprotected |
Default constructor
|
inlinevirtual |
|
pure virtual |
Returns the filename suffix for the plugins
Implemented in openfluid::machine::SimulatorPluginsManager, and openfluid::machine::ObserverPluginsManager.
|
pure virtual |
Returns the full path of the plugin from its filename
| [in] | Filename | The filename of the plugin |
Implemented in openfluid::machine::SimulatorPluginsManager, and openfluid::machine::ObserverPluginsManager.
|
pure virtual |
Returns ordered search paths for plugins
Implemented in openfluid::machine::SimulatorPluginsManager, and openfluid::machine::ObserverPluginsManager.
|
inline |
Loads only the body of a ware if the signature is already loaded
| [in] | Container | The ware container which already includes the signature |
|
inline |
Loads only the signature of a ware given by its ID
| [in] | ID | The ID of the ware to load |
|
inline |
Lists available wares
| [in] | IDPattern | if not empty, the list of available wares is filtered using the given pattern based on wildcard matching |
|
inline |
Unloads all already loaded plugins and clears the cache
|
protected |