icinga2/lib/livestatus/negatefilter.cpp
Michael Friedrich d14a88235d Replace Copyright header with a short version, part I
CLion -> replace in path
2019-02-25 14:48:22 +01:00

15 lines
302 B
C++

/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
#include "livestatus/negatefilter.hpp"
using namespace icinga;
NegateFilter::NegateFilter(Filter::Ptr inner)
: m_Inner(std::move(inner))
{ }
bool NegateFilter::Apply(const Table::Ptr& table, const Value& row)
{
return !m_Inner->Apply(table, row);
}