1 #ifndef __TEST_ADMIN_H__
2 #define __TEST_ADMIN_H__
6 class TEST_ADMIN : public ADMIN {
8 TEST_ADMIN() : priv(0xffFF), ip(0) {}
10 const std::string & GetPassword() const { return password; }
11 const std::string & GetLogin() const { return login; }
12 PRIV const * GetPriv() const { return &priv; }
13 uint16_t GetPrivAsInt() const { return priv.ToInt(); }
14 const ADMIN_CONF & GetConf() const { return conf; }
15 uint32_t GetIP() const { return ip; }
16 std::string GetIPStr() const { return inet_ntostring(ip); }
17 void SetIP(uint32_t ip) { TEST_ADMIN::ip = ip; }
18 const std::string GetLogStr() const { return ""; }