- PLUGIN_RUNNER(const std::string & pluginFileName,
- const MODULE_SETTINGS & ms,
- ADMINS_IMPL * admins,
- TARIFFS_IMPL * tariffs,
- USERS_IMPL * users,
- SERVICES_IMPL * services,
- CORPORATIONS_IMPL * corporations,
- TRAFFCOUNTER * tc,
- STORE * store,
- const SETTINGS_IMPL * s);
- PLUGIN_RUNNER(const PLUGIN_RUNNER & rvalue);
- ~PLUGIN_RUNNER();
-
- PLUGIN_RUNNER & operator=(const PLUGIN_RUNNER & rvalue);
+ struct Error : public std::runtime_error {
+ explicit Error(const std::string & msg) : runtime_error(msg) {}
+ };
+
+ PluginRunner(const std::string& pluginFileName,
+ const std::string& pluginName,
+ const ModuleSettings& ms,
+ Admins& admins,
+ Tariffs& tariffs,
+ Users& users,
+ Services& services,
+ Corporations& corporations,
+ TraffCounter& traffcounter,
+ Store& store,
+ const Settings & settings);
+ ~PluginRunner();