icinga2/lib/livestatus/attributefilter.hpp

34 lines
530 B
C++
Raw Normal View History

/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
2013-03-10 15:11:32 +01:00
#ifndef ATTRIBUTEFILTER_H
#define ATTRIBUTEFILTER_H
2014-05-25 16:23:35 +02:00
#include "livestatus/filter.hpp"
2013-03-17 20:19:29 +01:00
using namespace icinga;
namespace icinga
2013-03-10 15:11:32 +01:00
{
/**
* @ingroup livestatus
*/
2018-01-04 06:11:04 +01:00
class AttributeFilter final : public Filter
2013-03-10 15:11:32 +01:00
{
public:
DECLARE_PTR_TYPEDEFS(AttributeFilter);
2013-03-10 15:11:32 +01:00
AttributeFilter(String column, String op, String operand);
2013-03-10 15:11:32 +01:00
bool Apply(const Table::Ptr& table, const Value& row) override;
2013-03-10 15:11:32 +01:00
protected:
String m_Column;
String m_Operator;
String m_Operand;
};
}
#endif /* FILTER_H */