icinga2/lib/livestatus/andfilter.cpp

16 lines
295 B
C++
Raw Normal View History

/* 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;
bool AndFilter::Apply(const Table::Ptr& table, const Value& row)
2013-03-10 12:24:03 +01:00
{
for (const Filter::Ptr& filter : m_Filters) {
if (!filter->Apply(table, row))
2013-03-10 12:24:03 +01:00
return false;
}
return true;
}