1 #ifndef __TEST_SERVICES__
2 #define __TEST_SERVICES__
4 #include "stg/services.h"
6 class TEST_SERVICES : public STG::Services
9 virtual int Add(const STG::ServiceConf & /*service*/, const STG::Admin * /*admin*/) { return 0; }
10 virtual int Del(const std::string & /*name*/, const STG::Admin * /*admin*/) { return 0; }
11 virtual int Change(const STG::ServiceConf & /*service*/, const STG::Admin * /*admin*/) { return 0; }
12 virtual bool Find(const std::string & /*name*/, STG::ServiceConf * /*service*/) const { return false; }
13 virtual bool Find(const std::string & /*name*/, STG::ServiceConfOpt * /*service*/) const { return false; }
14 virtual bool Exists(const std::string & /*name*/) const { return false; }
15 virtual const std::string & GetStrError() const { return m_errorStr; }
16 virtual size_t Count() const { return 0; }
18 virtual int OpenSearch() const { return 0; }
19 virtual int SearchNext(int, STG::ServiceConf * /*service*/) const { return 0; }
20 virtual int CloseSearch(int) const { return 0; }
23 std::string m_errorStr;