25 std::vector<std::string>& plpaths,
33 _versionCheck(versionCheck)
49 pluginName, PluginException::PLUGIN_NOT_LOADED);
60 pluginName, PluginException::PLUGIN_NOT_LOADED);
69 runtime_error(n), _nameOfPlugin(pl), _err(e) {
virtual ParameteredObject * createInstance(const std::string &name, ParameteredObject::template_type t=ParameteredObject::TYPE_DOUBLE)
Creates an instance of the loaded plugin and returns a pointer to it.
forstatement_DECLDIR void destroy(ParameteredObject *b)
Deletes an instance of the plugin.
virtual ~AbstractPluginLoader()
Default Destructor.
const std::string & getPluginName() const
Get Plugin Name.
virtual ~PluginException()
Destructor.
template_type
Integer which represents a template type.
Base class for serializable objects.
ErrorCode getErrorCode() const
Plugin Exception Error Code.
Declares an abstract base class for a plugin loader.
forstatement_DECLDIR ParameteredObject * create(const std::string &name, ParameteredObject::template_type)
Creates an instance of the plugin.
virtual void destroyInstance(ParameteredObject *p)
Deletes an instance of the loaded plugin.
std::string pluginName
The name of the Plugin (without prefix "lib" and without extension)
virtual const std::string & getName() const
Get the name of the plugin.
AbstractPluginLoader(const std::string &name, std::vector< std::string > &plpaths, std::string &lSuffix, PluginManagerInterface::PluginVersionCheckLevel versionCheck=PluginManagerInterface::PluginVersionIgnore)
Default constructor.
PluginVersionCheckLevel
info how to handle version information
ErrorCode
Error Reason Enum.
PluginException(const std::string &message, const std::string &pluginName="", ErrorCode err=OTHER)
Constructor.