summaryrefslogtreecommitdiffstats
path: root/lib/livestatus/filter.hpp
blob: b9a01c8609beea8754495fe63f072d6a2069ed82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */

#ifndef FILTER_H
#define FILTER_H

#include "livestatus/i2-livestatus.hpp"
#include "livestatus/table.hpp"

namespace icinga
{

/**
 * @ingroup livestatus
 */
class Filter : public Object
{
public:
	DECLARE_PTR_TYPEDEFS(Filter);

	virtual bool Apply(const Table::Ptr& table, const Value& row) = 0;

protected:
	Filter() = default;
};

}

#endif /* FILTER_H */