mirror of https://github.com/Icinga/icinga2.git
Moved CIB class constructors from header file to .cpp files.
This commit is contained in:
parent
5f32319c02
commit
b38a618ce7
|
@ -2,6 +2,13 @@
|
|||
|
||||
using namespace icinga;
|
||||
|
||||
Host::Host(const ConfigObject::Ptr& configObject)
|
||||
: ConfigObjectAdapter(configObject)
|
||||
{
|
||||
assert(GetType() == "host");
|
||||
}
|
||||
|
||||
|
||||
string Host::GetAlias(void) const
|
||||
{
|
||||
string value;
|
||||
|
|
|
@ -7,11 +7,7 @@ namespace icinga
|
|||
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);
|
||||
|
|
|
@ -2,6 +2,12 @@
|
|||
|
||||
using namespace icinga;
|
||||
|
||||
HostGroup::HostGroup(const ConfigObject::Ptr& configObject)
|
||||
: ConfigObjectAdapter(configObject)
|
||||
{
|
||||
assert(GetType() == "hostgroup");
|
||||
}
|
||||
|
||||
string HostGroup::GetAlias(void) const
|
||||
{
|
||||
string value;
|
||||
|
|
|
@ -7,11 +7,7 @@ namespace icinga
|
|||
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);
|
||||
|
|
|
@ -2,6 +2,12 @@
|
|||
|
||||
using namespace icinga;
|
||||
|
||||
Service::Service(const ConfigObject::Ptr& configObject)
|
||||
: ConfigObjectAdapter(configObject)
|
||||
{
|
||||
assert(GetType() == "service");
|
||||
}
|
||||
|
||||
string Service::GetAlias(void) const
|
||||
{
|
||||
string value;
|
||||
|
|
|
@ -25,11 +25,7 @@ class ServiceStatusMessage;
|
|||
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);
|
||||
|
|
|
@ -2,6 +2,13 @@
|
|||
|
||||
using namespace icinga;
|
||||
|
||||
ServiceGroup::ServiceGroup(const ConfigObject::Ptr& configObject)
|
||||
: ConfigObjectAdapter(configObject)
|
||||
{
|
||||
assert(GetType() == "servicegroup");
|
||||
}
|
||||
|
||||
|
||||
string ServiceGroup::GetAlias(void) const
|
||||
{
|
||||
string value;
|
||||
|
|
|
@ -7,11 +7,7 @@ namespace icinga
|
|||
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);
|
||||
|
|
Loading…
Reference in New Issue