EnOcean Link  1.14.0.0
Middleware to Connect EnOcean easily to other Projects
eoIFilter Class Reference

Filter Interface. More...

#include <eoIFilter.h>

Inheritance diagram for eoIFilter:
Collaboration diagram for eoIFilter:

Public Member Functions

virtual bool Filter (eoMessage &msg)
 
virtual bool Filter (eoTelegram &tel)
 
virtual uint8_t Serialize (eoArchive &arch)
 
virtual void RemoveAll ()
 

Public Attributes

uint8_t type
 Type.
 

Detailed Description

Filter Interface.

GatewayFiltered_example.cpp

The Filter Interface allows you to easily Implement your own Filter strategies.Filters are used in the Gateway.

Member Function Documentation

◆ Filter() [1/2]

virtual bool eoIFilter::Filter ( eoMessage msg)
virtual

Applies the specified filter on the Message.

Parameters
msg
Returns
false when the message is filtered, else false.

Reimplemented in eodBmFilter, and eoIDFilter.

◆ Filter() [2/2]

virtual bool eoIFilter::Filter ( eoTelegram tel)
virtual

Applies the specified filter on the Telegram.

Parameters
tel
Returns
false when the message is filtered, else false.

Reimplemented in eodBmFilter, and eoIDFilter.

◆ RemoveAll()

virtual void eoIFilter::RemoveAll ( )
virtual

Remove all IDS.

Reimplemented in eoIDFilter.

◆ Serialize()

virtual uint8_t eoIFilter::Serialize ( eoArchive arch)
virtual

Serialization Function which will be called by the eoStorageManager This function will be called by the eoArchive(inside of the eoStorageManager) and allows the class to be Serialized.

Parameters
&archArchive where to Load or to Store.

Implements eoISerialize.

Reimplemented in eodBmFilter, and eoIDFilter.