git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Moved plugin-related things into a separate file.
[stg.git]
/
projects
/
stargazer
/
admin_impl.cpp
diff --git
a/projects/stargazer/admin_impl.cpp
b/projects/stargazer/admin_impl.cpp
index 3d5574c742cf9dbc59e0b1ade6f35a26adb9c55b..3d2c4895bf52ef84b64d50f9e40eb437a452fe3f 100644
(file)
--- a/
projects/stargazer/admin_impl.cpp
+++ b/
projects/stargazer/admin_impl.cpp
@@
-33,14
+33,16
@@
//-----------------------------------------------------------------------------
ADMIN_IMPL::ADMIN_IMPL()
//-----------------------------------------------------------------------------
ADMIN_IMPL::ADMIN_IMPL()
- : conf(),
+ : ADMIN(),
+ conf(),
ip(0),
WriteServLog(GetStgLogger())
{
}
//-----------------------------------------------------------------------------
ADMIN_IMPL::ADMIN_IMPL(const ADMIN_CONF & ac)
ip(0),
WriteServLog(GetStgLogger())
{
}
//-----------------------------------------------------------------------------
ADMIN_IMPL::ADMIN_IMPL(const ADMIN_CONF & ac)
- : conf(ac),
+ : ADMIN(),
+ conf(ac),
ip(0),
WriteServLog(GetStgLogger())
{
ip(0),
WriteServLog(GetStgLogger())
{
@@
-49,46
+51,47
@@
ADMIN_IMPL::ADMIN_IMPL(const ADMIN_CONF & ac)
ADMIN_IMPL::ADMIN_IMPL(const PRIV & priv,
const std::string & login,
const std::string & password)
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())
{
}
//-----------------------------------------------------------------------------
ip(0),
WriteServLog(GetStgLogger())
{
}
//-----------------------------------------------------------------------------
-ADMIN
& ADMIN_IMPL::operator=(const ADMIN
& adm)
+ADMIN
_IMPL & ADMIN_IMPL::operator=(const ADMIN_IMPL
& adm)
{
if (&adm == this)
return *this;
{
if (&adm == this)
return *this;
-conf = adm.
GetConf()
;
-ip = adm.
GetIP()
;
+conf = adm.
conf
;
+ip = adm.
ip
;
return *this;
}
//-----------------------------------------------------------------------------
return *this;
}
//-----------------------------------------------------------------------------
-ADMIN & ADMIN_IMPL::operator=(const ADMIN_CONF & ac)
+ADMIN
_IMPL
& ADMIN_IMPL::operator=(const ADMIN_CONF & ac)
{
conf = ac;
return *this;
}
//-----------------------------------------------------------------------------
{
conf = ac;
return *this;
}
//-----------------------------------------------------------------------------
-bool ADMIN_IMPL::operator==(const ADMIN & rhs) const
+bool ADMIN_IMPL::operator==(const ADMIN
_IMPL
& rhs) const
{
{
-return conf.login == rhs.
GetLogin()
;
+return conf.login == rhs.
conf.login
;
}
//-----------------------------------------------------------------------------
}
//-----------------------------------------------------------------------------
-bool ADMIN_IMPL::operator!=(const ADMIN & rhs) const
+bool ADMIN_IMPL::operator!=(const ADMIN
_IMPL
& rhs) const
{
{
-return conf.login != rhs.
GetLogin()
;
+return conf.login != rhs.
conf.login
;
}
//-----------------------------------------------------------------------------
}
//-----------------------------------------------------------------------------
-bool ADMIN_IMPL::operator<(const ADMIN & rhs) const
+bool ADMIN_IMPL::operator<(const ADMIN
_IMPL
& rhs) const
{
{
-return conf.login < rhs.
GetLogin()
;
+return conf.login < rhs.
conf.login
;
}
//-----------------------------------------------------------------------------
}
//-----------------------------------------------------------------------------
-bool ADMIN_IMPL::operator<=(const ADMIN & rhs) const
+bool ADMIN_IMPL::operator<=(const ADMIN
_IMPL
& rhs) const
{
{
-return conf.login <= rhs.
GetLogin()
;
+return conf.login <= rhs.
conf.login
;
}
//-----------------------------------------------------------------------------
std::string ADMIN_IMPL::GetIPStr() const
}
//-----------------------------------------------------------------------------
std::string ADMIN_IMPL::GetIPStr() const