X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/611e9aeab755acbfbccd42006c2b769d5843cbe5..704c26980e576b01caf27af751ca5ca08f8f355a:/projects/sgconv/main.cpp?ds=inline diff --git a/projects/sgconv/main.cpp b/projects/sgconv/main.cpp index e0679d07..63e83e9d 100644 --- a/projects/sgconv/main.cpp +++ b/projects/sgconv/main.cpp @@ -47,8 +47,6 @@ #include "settings_impl.h" -using namespace std; - volatile time_t stgTime = time(NULL); int main(int argc, char **argv) @@ -60,7 +58,7 @@ STORE * toStore = NULL; SETTINGS_IMPL * settings = NULL; -string modulePath; +std::string modulePath; MODULE_SETTINGS fromStoreSettings; MODULE_SETTINGS toStoreSettings; @@ -72,7 +70,7 @@ STG_MSG msg; TARIFF_DATA td; CORP_CONF cc; SERVICE_CONF sc; -vector hdrs; +std::vector hdrs; if (argc == 2) settings = new SETTINGS_IMPL(argv[1]); @@ -90,8 +88,8 @@ fromStoreSettings = settings->GetSourceStoreModuleSettings(); 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) @@ -129,8 +127,8 @@ if (!GetDestStore) fromStore = GetSourceStore(); toStore = GetDestStore(); -vector entities; -vector ready; +std::vector entities; +std::vector ready; fromStore->SetSettings(fromStoreSettings); fromStore->ParseSettings(); toStore->SetSettings(toStoreSettings); @@ -156,7 +154,7 @@ if (toStore->GetAdminsList(&ready)) return -1; } -vector::const_iterator it; +std::vector::const_iterator it; for (it = entities.begin(); it != entities.end(); ++it) { printfd(__FILE__, "\t - %s\n", it->c_str()); @@ -415,7 +413,7 @@ for (it = entities.begin(); it != entities.end(); ++it) delete settings; return -1; } - vector::iterator mit; + std::vector::iterator mit; for (mit = hdrs.begin(); mit != hdrs.end(); ++mit) { if (fromStore->GetMessage(mit->id, &msg, *it))