![]() |
Management class for pluggable wares
SignatureType | class defining the container for ware signature only |
ItemType | 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>
Classes | |
class | 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="") |
ItemType * | loadWareSignatureOnly (const std::string &ID) |
void | completeSignatureWithWareBody (ItemType *WareItem) |
void | unloadAllWares () |
Protected Member Functions | |
WarePluginsManager () | |
Protected Attributes | |
std::map< std::string, std::unique_ptr< QLibrary > > | m_LoadedPluginsLibraries |
|
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
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 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 |