]> granicus.if.org Git - icinga2/blob - lib/db_ido/hostgroupdbobject.hpp
Merge pull request #7124 from Icinga/bugfix/namespace-thread-safe
[icinga2] / lib / db_ido / hostgroupdbobject.hpp
1 /* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
2
3 #ifndef HOSTGROUPDBOBJECT_H
4 #define HOSTGROUPDBOBJECT_H
5
6 #include "db_ido/dbobject.hpp"
7 #include "icinga/hostgroup.hpp"
8 #include "base/configobject.hpp"
9
10 namespace icinga
11 {
12
13 /**
14  * A HostGroup database object.
15  *
16  * @ingroup ido
17  */
18 class HostGroupDbObject final : public DbObject
19 {
20 public:
21         DECLARE_PTR_TYPEDEFS(HostGroupDbObject);
22
23         HostGroupDbObject(const DbType::Ptr& type, const String& name1, const String& name2);
24
25         Dictionary::Ptr GetConfigFields() const override;
26         Dictionary::Ptr GetStatusFields() const override;
27
28 private:
29         static void MembersChangedHandler(const HostGroup::Ptr& hgfilter);
30 };
31
32 }
33
34 #endif /* HOSTGROUPDBOBJECT_H */