*/
/*
- * Author : Maxim Mamontov <faust@stargazer.dp.ua>
+ * Author : Maksym Mamontov <stg@madf.info>
*/
/*
#include "settings_impl.h"
-using namespace std;
-
volatile time_t stgTime = time(NULL);
int main(int argc, char **argv)
SETTINGS_IMPL * settings = NULL;
-string modulePath;
+std::string modulePath;
MODULE_SETTINGS fromStoreSettings;
MODULE_SETTINGS toStoreSettings;
TARIFF_DATA td;
CORP_CONF cc;
SERVICE_CONF sc;
-vector<STG_MSG_HDR> hdrs;
+std::vector<STG_MSG_HDR> hdrs;
if (argc == 2)
settings = new SETTINGS_IMPL(argv[1]);
toStoreSettings = settings->GetDestStoreModuleSettings();
modulePath = settings->GetModulesPath();
-string sourcePlugin(modulePath + "/mod_" + fromStoreSettings.moduleName + ".so");
-string destPlugin(modulePath + "/mod_" + toStoreSettings.moduleName + ".so");
+std::string sourcePlugin(modulePath + "/mod_" + fromStoreSettings.moduleName + ".so");
+std::string destPlugin(modulePath + "/mod_" + toStoreSettings.moduleName + ".so");
void * src_lh = dlopen(sourcePlugin.c_str(), RTLD_NOW);
if (!src_lh)
fromStore = GetSourceStore();
toStore = GetDestStore();
-vector<string> entities;
-vector<string> ready;
+std::vector<std::string> entities;
+std::vector<std::string> ready;
fromStore->SetSettings(fromStoreSettings);
fromStore->ParseSettings();
toStore->SetSettings(toStoreSettings);
return -1;
}
-vector<string>::const_iterator it;
+std::vector<std::string>::const_iterator it;
for (it = entities.begin(); it != entities.end(); ++it)
{
printfd(__FILE__, "\t - %s\n", it->c_str());
delete settings;
return -1;
}
- vector<STG_MSG_HDR>::iterator mit;
+ std::vector<STG_MSG_HDR>::iterator mit;
for (mit = hdrs.begin(); mit != hdrs.end(); ++mit)
{
if (fromStore->GetMessage(mit->id, &msg, *it))