//-----------------------------------------------------------------------------
ADMIN_IMPL::ADMIN_IMPL()
- : conf(),
+ : ADMIN(),
+ conf(),
ip(0),
WriteServLog(GetStgLogger())
{
}
//-----------------------------------------------------------------------------
ADMIN_IMPL::ADMIN_IMPL(const ADMIN_CONF & ac)
- : conf(ac),
+ : ADMIN(),
+ conf(ac),
ip(0),
WriteServLog(GetStgLogger())
{
ADMIN_IMPL::ADMIN_IMPL(const PRIV & priv,
const std::string & login,
const std::string & password)
- : conf(priv, login, password),
+ : ADMIN(),
+ conf(priv, login, password),
ip(0),
WriteServLog(GetStgLogger())
{
//-----------------------------------------------------------------------------
ADMINS_IMPL::ADMINS_IMPL(STORE * st)
- : stg(0xFFFF, "@stargazer", ""),
+ : ADMINS(),
+ stg(0xFFFF, "@stargazer", ""),
noAdmin(0xFFFF, "NO-ADMIN", ""),
data(),
store(st),
//-----------------------------------------------------------------------------
SETTINGS_IMPL::SETTINGS_IMPL()
- : strError(),
+ : SETTINGS(),
+ strError(),
modulesPath("/usr/lib/stg"),
dirName(DIR_NUM),
confDir("/etc/stargazer"),
}
//-----------------------------------------------------------------------------
SETTINGS_IMPL::SETTINGS_IMPL(const std::string & cd)
- : strError(),
+ : SETTINGS(),
+ strError(),
modulesPath("/usr/lib/stg"),
dirName(DIR_NUM),
confDir(cd),
}
//-----------------------------------------------------------------------------
SETTINGS_IMPL::SETTINGS_IMPL(const SETTINGS_IMPL & rval)
- : strError(),
+ : SETTINGS(),
+ strError(),
modulesPath(rval.modulesPath),
dirName(rval.dirName),
confDir(rval.confDir),
class TARIFF_IMPL : public TARIFF {
public:
TARIFF_IMPL()
- : tariffData()
+ : TARIFF(),
+ tariffData()
{};
TARIFF_IMPL(const std::string & name)
- : tariffData(name)
+ : TARIFF(),
+ tariffData(name)
{};
TARIFF_IMPL(const TARIFF_DATA & td)
- : tariffData(td)
+ : TARIFF(),
+ tariffData(td)
{};
TARIFF_IMPL(const TARIFF_IMPL & t)
- : tariffData(t.tariffData)
+ : TARIFF(),
+ tariffData(t.tariffData)
{};
virtual ~TARIFF_IMPL() {};
//-----------------------------------------------------------------------------
TARIFFS_IMPL::TARIFFS_IMPL(STORE * st)
- : tariffs(),
+ : TARIFFS(),
+ tariffs(),
store(st),
WriteServLog(GetStgLogger()),
strError(),
#include <csignal>
#include <cassert>
#include <cstdio> // fopen and similar
+#include <cstdlib> // strtol
#include "stg/common.h"
#include "stg/locker.h"
//-----------------------------------------------------------------------------
TRAFFCOUNTER_IMPL::TRAFFCOUNTER_IMPL(USERS_IMPL * u, const std::string & fn)
- : WriteServLog(GetStgLogger()),
+ : TRAFFCOUNTER(),
+ WriteServLog(GetStgLogger()),
rulesFileName(fn),
monitoring(false),
users(u),
const TARIFFS * t,
const ADMIN * a,
const USERS * u)
- : users(u),
+ : USER(),
+ users(u),
property(s->GetScriptsDir()),
WriteServLog(GetStgLogger()),
login(),
const TARIFFS * t,
const ADMIN * a,
const USERS * u)
- : users(u),
+ : USER(),
+ users(u),
property(s->GetScriptsDir()),
WriteServLog(GetStgLogger()),
login(),
#endif
//-----------------------------------------------------------------------------
USER_IMPL::USER_IMPL(const USER_IMPL & u)
- : users(u.users),
+ : USER(),
+ users(u.users),
property(u.settings->GetScriptsDir()),
WriteServLog(GetStgLogger()),
login(u.login),
//-----------------------------------------------------------------------------
USERS_IMPL::USERS_IMPL(SETTINGS_IMPL * s, STORE * st, TARIFFS * t, const ADMIN * sa)
- : users(),
+ : USERS(),
+ users(),
usersToDelete(),
userIPNotifiersBefore(),
userIPNotifiersAfter(),
if (store->GetUsersList(&usersList) < 0)
{
WriteServLog(store->GetStrError().c_str());
- exit(1);
+ return -1;
}
user_iter ui;