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 07:24:03 -04:00
|
|
|
|
2014-05-25 10:23:35 -04:00
|
|
|
#include "livestatus/andfilter.hpp"
|
2013-03-10 07:24:03 -04:00
|
|
|
|
|
|
|
|
using namespace icinga;
|
|
|
|
|
|
2013-07-10 10:11:40 -04:00
|
|
|
bool AndFilter::Apply(const Table::Ptr& table, const Value& row)
|
2013-03-10 07:24:03 -04:00
|
|
|
{
|
2016-08-25 00:19:44 -04:00
|
|
|
for (const Filter::Ptr& filter : m_Filters) {
|
2013-07-10 10:11:40 -04:00
|
|
|
if (!filter->Apply(table, row))
|
2013-03-10 07:24:03 -04:00
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
}
|