++si;
}
-data.remove(*ai);
+data.erase(ai);
if (store->DelAdmin(login) < 0)
{
strError = "Administrator \'" + login + "\' was not deleted. Error: " + store->GetStrError();
#include "stg/noncopyable.h"
#include "stg/logger.h"
-#include <list>
+#include <vector>
#include <map>
#include <string>
ADMINS_IMPL(const ADMINS_IMPL & rvalue);
ADMINS_IMPL & operator=(const ADMINS_IMPL & rvalue);
- typedef std::list<ADMIN_IMPL>::iterator admin_iter;
- typedef std::list<ADMIN_IMPL>::const_iterator const_admin_iter;
+ typedef std::vector<ADMIN_IMPL>::iterator admin_iter;
+ typedef std::vector<ADMIN_IMPL>::const_iterator const_admin_iter;
int Read();
ADMIN_IMPL stg;
ADMIN_IMPL noAdmin;
- std::list<ADMIN_IMPL> data;
+ std::vector<ADMIN_IMPL> data;
STORE * store;
STG_LOGGER & WriteServLog;
mutable std::map<int, const_admin_iter> searchDescriptors;
++csi;
}
-data.remove(*si);
+data.erase(si);
if (store->DelCorp(name) < 0)
{
strError = "Corporation \'" + name + "\' was not deleted. Error: " + store->GetStrError();
#include "stg/noncopyable.h"
#include "stg/logger.h"
-#include <list>
+#include <vector>
#include <map>
#include <string>
CORPORATIONS_IMPL(const CORPORATIONS_IMPL & rvalue);
CORPORATIONS_IMPL & operator=(const CORPORATIONS_IMPL & rvalue);
- typedef std::list<CORP_CONF>::iterator crp_iter;
- typedef std::list<CORP_CONF>::const_iterator const_crp_iter;
+ typedef std::vector<CORP_CONF>::iterator crp_iter;
+ typedef std::vector<CORP_CONF>::const_iterator const_crp_iter;
bool Read();
- std::list<CORP_CONF> data;
+ std::vector<CORP_CONF> data;
STORE * store;
STG_LOGGER & WriteServLog;
mutable std::map<int, const_crp_iter> searchDescriptors;
++csi;
}
-data.remove(*si);
+data.erase(si);
if (store->DelService(name) < 0)
{
strError = "Service \'" + name + "\' was not deleted. Error: " + store->GetStrError();
#include "stg/noncopyable.h"
#include "stg/logger.h"
-#include <list>
+#include <vector>
#include <map>
#include <string>
SERVICES_IMPL(const SERVICES_IMPL & rvalue);
SERVICES_IMPL & operator=(const SERVICES_IMPL & rvalue);
- typedef std::list<SERVICE_CONF>::iterator iterator;
- typedef std::list<SERVICE_CONF>::const_iterator const_iterator;
+ typedef std::vector<SERVICE_CONF>::iterator iterator;
+ typedef std::vector<SERVICE_CONF>::const_iterator const_iterator;
bool Read();
- std::list<SERVICE_CONF> data;
+ std::vector<SERVICE_CONF> data;
STORE * store;
STG_LOGGER & WriteServLog;
mutable std::map<int, const_iterator> searchDescriptors;
#include "stg/tariff_conf.h"
#include <string>
-#include <list>
#include <ctime>
#include <cstdint>