2012-06-13 13:42:55 +02:00
|
|
|
#ifndef HOST_H
|
|
|
|
#define HOST_H
|
|
|
|
|
|
|
|
namespace icinga
|
|
|
|
{
|
|
|
|
|
2012-07-02 19:09:45 +02:00
|
|
|
class I2_CIB_API Host : public ConfigObjectAdapter
|
2012-06-13 13:42:55 +02:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
Host(const ConfigObject::Ptr& configObject)
|
|
|
|
: ConfigObjectAdapter(configObject)
|
|
|
|
{ }
|
|
|
|
|
2012-06-30 13:39:55 +02:00
|
|
|
static bool Exists(const string& name);
|
|
|
|
static Host GetByName(const string& name);
|
2012-06-13 13:42:55 +02:00
|
|
|
|
2012-06-30 13:39:55 +02:00
|
|
|
string GetAlias(void) const;
|
|
|
|
Dictionary::Ptr GetGroups(void) const;
|
2012-06-13 13:42:55 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* HOST_H */
|