blob: 6cc446caeb4178b0fb5fac30763df882f5c18009 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
#include "livestatus/orfilter.hpp"
using namespace icinga;
bool OrFilter::Apply(const Table::Ptr& table, const Value& row)
{
if (m_Filters.empty())
return true;
for (const Filter::Ptr& filter : m_Filters) {
if (filter->Apply(table, row))
return true;
}
return false;
}
|