- PLUGIN_RUNNER(const string & pluginFileName,
- const MODULE_SETTINGS & ms,
- ADMINS * admins,
- TARIFFS * tariffs,
- USERS * users,
- TRAFFCOUNTER * tc,
- BASE_STORE * store,
- const SETTINGS * 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();