22 #ifndef __M2ETIS_PUBSUB_FILTER_FILTEREXPRESSIONS_EQUALSATTRIBUTEFILTER_H__
23 #define __M2ETIS_PUBSUB_FILTER_FILTEREXPRESSIONS_EQUALSATTRIBUTEFILTER_H__
32 template<
typename EventType,
typename AttributeType>
class AttributeFilter;
33 template<
typename EventType,
typename AttributeType>
class NotEqualsAttributeFilter;
34 template<
typename EventType,
typename AttributeType>
class GreaterThanAttributeFilter;
35 template<
typename EventType,
typename AttributeType>
class LessThanAttributeFilter;
37 template<
typename EventType,
typename AttributeType>
38 class EqualsAttributeFilter :
public AttributeFilter<EventType, AttributeType> {
46 virtual bool matchAttribute(
const AttributeType & attribute)
const override {
78 template<
typename Archive>
79 void serialize(Archive & ar,
const unsigned int) {
80 ar & boost::serialization::base_object<AttributeFilter<EventType, AttributeType>>(*this);
virtual void getAttributeType(FilterVisitor< EventType > &visitor) const override
virtual bool overlaps(const AttributeFilter< EventType, AttributeType > *other_filter) const override
virtual void getAttributeType(const GreaterThanAttributeFilter< EventType, std::string > *)
virtual ~EqualsAttributeFilter()
const std::vector< AttributeType > get_constants() const
friend class boost::serialization::access
virtual bool matchAttribute(const AttributeType &attribute) const override
EqualsAttributeFilter(const AttributeName attribute_id, const AttributeType &constants)
AttributeName get_attribute_id() const