2019-02-25 14:48:22 +01:00
|
|
|
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
|
2013-03-10 15:11:32 +01:00
|
|
|
|
|
|
|
#ifndef COMBINERFILTER_H
|
|
|
|
#define COMBINERFILTER_H
|
|
|
|
|
2014-05-25 16:23:35 +02:00
|
|
|
#include "livestatus/filter.hpp"
|
2013-03-17 20:19:29 +01:00
|
|
|
|
|
|
|
using namespace icinga;
|
|
|
|
|
2013-11-11 11:57:25 +01:00
|
|
|
namespace icinga
|
2013-03-10 15:11:32 +01:00
|
|
|
{
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @ingroup livestatus
|
|
|
|
*/
|
2017-12-31 07:22:16 +01:00
|
|
|
class CombinerFilter : public Filter
|
2013-03-10 15:11:32 +01:00
|
|
|
{
|
|
|
|
public:
|
2014-11-07 18:37:07 +01:00
|
|
|
DECLARE_PTR_TYPEDEFS(CombinerFilter);
|
2013-03-10 15:11:32 +01:00
|
|
|
|
|
|
|
void AddSubFilter(const Filter::Ptr& filter);
|
|
|
|
|
|
|
|
protected:
|
2013-03-16 21:18:53 +01:00
|
|
|
std::vector<Filter::Ptr> m_Filters;
|
2018-01-04 06:11:04 +01:00
|
|
|
|
2018-01-04 09:43:49 +01:00
|
|
|
CombinerFilter() = default;
|
2013-03-10 15:11:32 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* COMBINERFILTER_H */
|