]> granicus.if.org Git - icinga2/blob - lib/livestatus/filter.hpp
add some object locking to the Dump method (which could theoreticylly suffer from...
[icinga2] / lib / livestatus / filter.hpp
1 /* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
2
3 #ifndef FILTER_H
4 #define FILTER_H
5
6 #include "livestatus/i2-livestatus.hpp"
7 #include "livestatus/table.hpp"
8
9 namespace icinga
10 {
11
12 /**
13  * @ingroup livestatus
14  */
15 class Filter : public Object
16 {
17 public:
18         DECLARE_PTR_TYPEDEFS(Filter);
19
20         virtual bool Apply(const Table::Ptr& table, const Value& row) = 0;
21
22 protected:
23         Filter() = default;
24 };
25
26 }
27
28 #endif /* FILTER_H */