2026-01-27 09:06:40 -05:00
|
|
|
// SPDX-FileCopyrightText: 2012 Icinga GmbH <https://icinga.com>
|
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2013-03-10 10:11:32 -04:00
|
|
|
|
2014-05-25 10:23:35 -04:00
|
|
|
#include "livestatus/negatefilter.hpp"
|
2013-03-10 10:11:32 -04:00
|
|
|
|
|
|
|
|
using namespace icinga;
|
|
|
|
|
|
2018-01-04 02:54:18 -05:00
|
|
|
NegateFilter::NegateFilter(Filter::Ptr inner)
|
|
|
|
|
: m_Inner(std::move(inner))
|
2013-03-10 10:11:32 -04:00
|
|
|
{ }
|
|
|
|
|
|
2013-07-10 10:11:40 -04:00
|
|
|
bool NegateFilter::Apply(const Table::Ptr& table, const Value& row)
|
2013-03-10 10:11:32 -04:00
|
|
|
{
|
2013-07-10 10:11:40 -04:00
|
|
|
return !m_Inner->Apply(table, row);
|
2013-03-10 10:11:32 -04:00
|
|
|
}
|