icinga2/lib/livestatus/filter.hpp

29 lines
408 B
C++
Raw Normal View History

/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
2013-03-10 03:09:01 +01:00
#ifndef FILTER_H
#define FILTER_H
2013-03-10 03:09:01 +01:00
2015-02-26 09:02:45 +01:00
#include "livestatus/i2-livestatus.hpp"
2014-05-25 16:23:35 +02:00
#include "livestatus/table.hpp"
2013-03-17 20:19:29 +01:00
namespace icinga
2013-03-10 03:09:01 +01:00
{
/**
* @ingroup livestatus
*/
2017-12-31 07:22:16 +01:00
class Filter : public Object
2013-03-10 03:09:01 +01:00
{
public:
DECLARE_PTR_TYPEDEFS(Filter);
2013-03-10 03:09:01 +01:00
virtual bool Apply(const Table::Ptr& table, const Value& row) = 0;
protected:
Filter() = default;
2013-03-10 03:09:01 +01:00
};
}
#endif /* FILTER_H */