]> granicus.if.org Git - icinga2/blob - lib/livestatus/negatefilter.hpp
Merge branch 'support/2.10'
[icinga2] / lib / livestatus / negatefilter.hpp
1 /* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
2
3 #ifndef NEGATEFILTER_H
4 #define NEGATEFILTER_H
5
6 #include "livestatus/filter.hpp"
7
8 using namespace icinga;
9
10 namespace icinga
11 {
12
13 /**
14  * @ingroup livestatus
15  */
16 class NegateFilter final : public Filter
17 {
18 public:
19         DECLARE_PTR_TYPEDEFS(NegateFilter);
20
21         NegateFilter(Filter::Ptr inner);
22
23         bool Apply(const Table::Ptr& table, const Value& row) override;
24
25 private:
26         Filter::Ptr m_Inner;
27 };
28
29 }
30
31 #endif /* NEGATEFILTER_H */