1 #ifndef __TEST_SERVICES__
2 #define __TEST_SERVICES__
4 #include "stg/services.h"
6 class TEST_SERVICES : public SERVICES
9 virtual int Add(const SERVICE_CONF & /*service*/, const ADMIN * /*admin*/) { return 0; }
10 virtual int Del(const std::string & /*name*/, const ADMIN * /*admin*/) { return 0; }
11 virtual int Change(const SERVICE_CONF & /*service*/, const ADMIN * /*admin*/) { return 0; }
12 virtual bool Find(const std::string & name, SERVICE_CONF * service) const { return false; }
13 virtual bool Find(const std::string & name, SERVICE_CONF_RES * 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, SERVICE_CONF * /*service*/) const { return 0; }
20 virtual int CloseSearch(int) const { return 0; }
23 std::string m_errorStr;