]> granicus.if.org Git - icinga2/blobdiff - lib/icinga/hostgroup.hpp
Service: be handled while host is down
[icinga2] / lib / icinga / hostgroup.hpp
index aad8e2265708914ea04e967688c106efa4502497..283930a237735fffa4dad295000a20388e2be6a7 100644 (file)
@@ -1,27 +1,10 @@
-/******************************************************************************
- * Icinga 2                                                                   *
- * Copyright (C) 2012-2018 Icinga Development Team (https://www.icinga.com/)  *
- *                                                                            *
- * This program is free software; you can redistribute it and/or              *
- * modify it under the terms of the GNU General Public License                *
- * as published by the Free Software Foundation; either version 2             *
- * of the License, or (at your option) any later version.                     *
- *                                                                            *
- * This program is distributed in the hope that it will be useful,            *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of             *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *
- * GNU General Public License for more details.                               *
- *                                                                            *
- * You should have received a copy of the GNU General Public License          *
- * along with this program; if not, write to the Free Software Foundation     *
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.             *
- ******************************************************************************/
+/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
 
 #ifndef HOSTGROUP_H
 #define HOSTGROUP_H
 
 #include "icinga/i2-icinga.hpp"
-#include "icinga/hostgroup.thpp"
+#include "icinga/hostgroup-ti.hpp"
 #include "icinga/host.hpp"
 
 namespace icinga
@@ -34,13 +17,13 @@ class ConfigItem;
  *
  * @ingroup icinga
  */
-class I2_ICINGA_API HostGroup : public ObjectImpl<HostGroup>
+class HostGroup final : public ObjectImpl<HostGroup>
 {
 public:
        DECLARE_OBJECT(HostGroup);
        DECLARE_OBJECTNAME(HostGroup);
 
-       std::set<Host::Ptr> GetMembers(void) const;
+       std::set<Host::Ptr> GetMembers() const;
        void AddMember(const Host::Ptr& host);
        void RemoveMember(const Host::Ptr& host);