2019-02-25 14:48:22 +01:00
|
|
|
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
|
2013-03-10 12:24:03 +01:00
|
|
|
|
2014-05-25 16:23:35 +02:00
|
|
|
#include "livestatus/andfilter.hpp"
|
2013-03-10 12:24:03 +01:00
|
|
|
|
|
|
|
using namespace icinga;
|
|
|
|
|
2013-07-10 16:11:40 +02:00
|
|
|
bool AndFilter::Apply(const Table::Ptr& table, const Value& row)
|
2013-03-10 12:24:03 +01:00
|
|
|
{
|
2016-08-25 06:19:44 +02:00
|
|
|
for (const Filter::Ptr& filter : m_Filters) {
|
2013-07-10 16:11:40 +02:00
|
|
|
if (!filter->Apply(table, row))
|
2013-03-10 12:24:03 +01:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
return true;
|
|
|
|
}
|