]> granicus.if.org Git - icinga2/blobdiff - lib/livestatus/hostgroupstable.hpp
Merge pull request #6509 from gunnarbeutner/feature/real-constants
[icinga2] / lib / livestatus / hostgroupstable.hpp
index c4f7fd87c7d4fdd10824ba65b1264e5a8e080b34..91d2847a10bbb40ab43a2a0044da6b42bb66afff 100644 (file)
@@ -1,6 +1,6 @@
 /******************************************************************************
  * Icinga 2                                                                   *
- * Copyright (C) 2012-2015 Icinga Development Team (http://www.icinga.org)    *
+ * 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                *
@@ -30,21 +30,21 @@ namespace icinga
 /**
  * @ingroup livestatus
  */
-class I2_LIVESTATUS_API HostGroupsTable : public Table
+class HostGroupsTable final : public Table
 {
 public:
        DECLARE_PTR_TYPEDEFS(HostGroupsTable);
 
-       HostGroupsTable(void);
+       HostGroupsTable();
 
        static void AddColumns(Table *table, const String& prefix = String(),
-           const Column::ObjectAccessor& objectAccessor = Column::ObjectAccessor());
+               const Column::ObjectAccessor& objectAccessor = Column::ObjectAccessor());
 
-       virtual String GetName(void) const;
-       virtual String GetPrefix(void) const;
+       String GetName() const override;
+       String GetPrefix() const override;
 
 protected:
-       virtual void FetchRows(const AddRowFunction& addRowFn);
+       void FetchRows(const AddRowFunction& addRowFn) override;
 
        static Value NameAccessor(const Value& row);
        static Value AliasAccessor(const Value& row);
@@ -60,7 +60,7 @@ protected:
        static Value NumHostsDownAccessor(const Value& row);
        static Value NumHostsUnreachAccessor(const Value& row);
        static Value NumServicesAccessor(const Value& row);
-       static Value WorstServicesStateAccessor(const Value& row);
+       static Value WorstServiceStateAccessor(const Value& row);
        static Value NumServicesPendingAccessor(const Value& row);
        static Value NumServicesOkAccessor(const Value& row);
        static Value NumServicesWarnAccessor(const Value& row);