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