/******************************************************************************
* Icinga 2 *
- * Copyright (C) 2012-2016 Icinga Development Team (https://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 *
Value GroupByObject;
};
-
-typedef boost::function<bool (const Value&, LivestatusGroupByType, const Object::Ptr&)> AddRowFunction;
+typedef std::function<bool (const Value&, LivestatusGroupByType, const Object::Ptr&)> AddRowFunction;
class Filter;
/**
* @ingroup livestatus
*/
-class I2_LIVESTATUS_API Table : public Object
+class Table : public Object
{
public:
DECLARE_PTR_TYPEDEFS(Table);
static Table::Ptr GetByName(const String& name, const String& compat_log_path = "", const unsigned long& from = 0, const unsigned long& until = 0);
- virtual String GetName(void) const = 0;
- virtual String GetPrefix(void) const = 0;
+ virtual String GetName() const = 0;
+ virtual String GetPrefix() const = 0;
std::vector<LivestatusRowValue> FilterRows(const intrusive_ptr<Filter>& filter, int limit = -1);
void AddColumn(const String& name, const Column& column);
Column GetColumn(const String& name) const;
- std::vector<String> GetColumnNames(void) const;
+ std::vector<String> GetColumnNames() const;
- virtual LivestatusGroupByType GetGroupByType(void) const;
+ LivestatusGroupByType GetGroupByType() const;
protected:
Table(LivestatusGroupByType type = LivestatusGroupByNone);