2019-02-25 14:48:22 +01:00
|
|
|
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
|
2013-03-10 15:11:32 +01:00
|
|
|
|
|
|
|
#ifndef NEGATEFILTER_H
|
|
|
|
#define NEGATEFILTER_H
|
|
|
|
|
2014-05-25 16:23:35 +02:00
|
|
|
#include "livestatus/filter.hpp"
|
2013-03-17 20:19:29 +01:00
|
|
|
|
|
|
|
using namespace icinga;
|
|
|
|
|
2013-11-11 11:57:25 +01:00
|
|
|
namespace icinga
|
2013-03-10 15:11:32 +01:00
|
|
|
{
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @ingroup livestatus
|
|
|
|
*/
|
2018-01-04 06:11:04 +01:00
|
|
|
class NegateFilter final : public Filter
|
2013-03-10 15:11:32 +01:00
|
|
|
{
|
|
|
|
public:
|
2014-11-07 18:37:07 +01:00
|
|
|
DECLARE_PTR_TYPEDEFS(NegateFilter);
|
2013-03-10 15:11:32 +01:00
|
|
|
|
2018-01-04 08:54:18 +01:00
|
|
|
NegateFilter(Filter::Ptr inner);
|
2013-03-10 15:11:32 +01:00
|
|
|
|
2018-01-04 05:12:56 +01:00
|
|
|
bool Apply(const Table::Ptr& table, const Value& row) override;
|
2013-03-10 15:11:32 +01:00
|
|
|
|
|
|
|
private:
|
|
|
|
Filter::Ptr m_Inner;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* NEGATEFILTER_H */
|