2019-02-25 14:48:22 +01:00
|
|
|
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
|
2013-03-10 03:09:01 +01:00
|
|
|
|
2013-03-10 09:23:13 +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
|
|
|
|
2013-11-11 11:57:25 +01:00
|
|
|
namespace icinga
|
2013-03-10 03:09:01 +01:00
|
|
|
{
|
|
|
|
|
2013-03-10 09:23:13 +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:
|
2014-11-07 18:37:07 +01:00
|
|
|
DECLARE_PTR_TYPEDEFS(Filter);
|
2013-03-10 03:09:01 +01:00
|
|
|
|
2013-07-10 16:11:40 +02:00
|
|
|
virtual bool Apply(const Table::Ptr& table, const Value& row) = 0;
|
2018-01-04 04:25:35 +01:00
|
|
|
|
|
|
|
protected:
|
2018-01-04 08:54:18 +01:00
|
|
|
Filter() = default;
|
2013-03-10 03:09:01 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2013-03-10 09:23:13 +01:00
|
|
|
#endif /* FILTER_H */
|