public:
Host(const ConfigObject::Ptr& configObject)
: ConfigObjectAdapter(configObject)
- { }
+ {
+ assert(GetType() == "host");
+ }
static bool Exists(const string& name);
static Host GetByName(const string& name);
public:
HostGroup(const ConfigObject::Ptr& configObject)
: ConfigObjectAdapter(configObject)
- { }
+ {
+ assert(GetType() == "hostgroup");
+ }
static bool Exists(const string& name);
static HostGroup GetByName(const string& name);
public:
Service(const ConfigObject::Ptr& configObject)
: ConfigObjectAdapter(configObject)
- { }
+ {
+ assert(GetType() == "service");
+ }
static bool Exists(const string& name);
static Service GetByName(const string& name);
public:
ServiceGroup(const ConfigObject::Ptr& configObject)
: ConfigObjectAdapter(configObject)
- { }
+ {
+ assert(GetType() == "servicegroup");
+ }
static bool Exists(const string& name);
static ServiceGroup GetByName(const string& name);