summaryrefslogtreecommitdiffstats
path: root/lib/livestatus/negatefilter.hpp
blob: c08943ca80317d4c3b0a7c7461d75740a1d0ee84 (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
29
30
31
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */

#ifndef NEGATEFILTER_H
#define NEGATEFILTER_H

#include "livestatus/filter.hpp"

using namespace icinga;

namespace icinga
{

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

	NegateFilter(Filter::Ptr inner);

	bool Apply(const Table::Ptr& table, const Value& row) override;

private:
	Filter::Ptr m_Inner;
};

}

#endif /* NEGATEFILTER_H */