summaryrefslogtreecommitdiffstats
path: root/lib/livestatus/andfilter.cpp
blob: 98525806fbeb10846525dcf914ae2ad5e2ccef38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */

#include "livestatus/andfilter.hpp"

using namespace icinga;

bool AndFilter::Apply(const Table::Ptr& table, const Value& row)
{
	for (const Filter::Ptr& filter : m_Filters) {
		if (!filter->Apply(table, row))
			return false;
	}

	return true;
}