From: Elena Mamontova Date: Thu, 18 Feb 2016 08:06:15 +0000 (+0200) Subject: Ticket 26. The pluginName variable, GetName() method, pluginName X-Git-Tag: 2.409~174^2~1^2~39 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/6b3287a39f856ed57ee63cc62d948e3245bb561d Ticket 26. The pluginName variable, GetName() method, pluginName parameter to the constructor added. --- diff --git a/projects/stargazer/plugin_runner.h b/projects/stargazer/plugin_runner.h index 1402d2ef..429d59ca 100644 --- a/projects/stargazer/plugin_runner.h +++ b/projects/stargazer/plugin_runner.h @@ -46,6 +46,7 @@ public: }; PLUGIN_RUNNER(const std::string & pluginFileName, + const std::string & pluginName, const MODULE_SETTINGS & ms, ADMINS & admins, TARIFFS & tariffs, @@ -66,6 +67,7 @@ public: const std::string & GetStrError() const { return errorStr; } PLUGIN & GetPlugin() { return m_plugin; } const std::string & GetFileName() const { return pluginFileName; } + const std::string & GetName() const { return pluginName; } uint16_t GetStartPosition() const { return m_plugin.GetStartPosition(); } uint16_t GetStopPosition() const { return m_plugin.GetStopPosition(); } @@ -85,6 +87,7 @@ private: const SETTINGS & settings); std::string pluginFileName; + std::string pluginName; void * libHandle; PLUGIN & m_plugin;