3 #include "stg/services.h"
5 class TestServices : public STG::Services
8 int Add(const STG::ServiceConf& /*service*/, const STG::Admin* /*admin*/) override { return 0; }
9 int Del(const std::string& /*name*/, const STG::Admin* /*admin*/) override { return 0; }
10 int Change(const STG::ServiceConf& /*service*/, const STG::Admin* /*admin*/) override { return 0; }
11 bool Find(const std::string& /*name*/, STG::ServiceConf* /*service*/) const override { return false; }
12 bool Find(const std::string& /*name*/, STG::ServiceConfOpt* /*service*/) const override { return false; }
13 bool Exists(const std::string& /*name*/) const override { return false; }
14 const std::string& GetStrError() const override { return m_errorStr; }
15 size_t Count() const override { return 0; }
17 int OpenSearch() const override { return 0; }
18 int SearchNext(int /*handle*/, STG::ServiceConf* /*service*/) const override { return 0; }
19 int CloseSearch(int /*handle*/) const override { return 0; }
22 std::string m_errorStr;