![]() |
Manual for OpenFLUID 2.1.11 |
Management class for pluggable wares
| SignatureInstanceType | class defining the container for ware signature only |
| ItemInstanceType | class defining the container for ware signature and body |
| SignatureProc | procedure definition for instantiation of the signature |
| BodyProc | procedure definition for instantiation of the body |
#include <machine/WarePluginsManager.hpp>
Public Types | |
| typedef WarePluginsSearchResults< SignatureInstanceType > | PluginsSearchResults |
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 |
| PluginsSearchResults | getAvailableWaresSignatures (const std::string &Pattern="") |
| ItemInstanceType * | loadWareSignatureOnly (const std::string &ID) |
| void | completeSignatureWithWareBody (ItemInstanceType *WareItem) |
| void | unloadAllWares () |
Protected Member Functions | |
| WarePluginsManager () | |
Protected Attributes | |
| std::map< std::string, std::unique_ptr< QLibrary > > | m_LoadedPluginsLibraries |
| typedef WarePluginsSearchResults<SignatureInstanceType> openfluid::machine::WarePluginsManager< SignatureInstanceType, ItemInstanceType, SignatureProc, BodyProc >::PluginsSearchResults |
|
inlineprotected |
Default constructor
|
inlinevirtual |
|
inline |
Loads only the body of a ware if the signature is already loaded
| [in,out] | WareItem | The ware container to complete which already includes the signature |
|
inline |
Lists available wares
| [in] | Pattern | if not empty, the list of available wares is filtered using the given pattern based on wildcard matching |
|
pure virtual |
Returns the filename suffix for the plugins
|
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
|
inline |
Loads only the signature of a ware given by its ID
| [in] | ID | The ID of the ware to load |
|
inline |
Unloads all already loaded wares and clears the cache
|
protected |
1.8.17