HAN-FUN API  1.5.3
This project provides the common implementation of ULE Alliance's HAN-FUN application protocol.
HF::Protocol::Filters::ResponseRequired Class Reference

This class provides support for generating a response when a response is required from an incoming message received, but no response was generated. More...

#include <protocol.h>

+ Collaboration diagram for HF::Protocol::Filters::ResponseRequired:

Data Structures

struct  Entry
 Filter database entry. More...
 

Public Member Functions

bool operator() (const HF::Protocol::Packet &packet)
 Checks if the given packet, is a retransmission according to the filters database data. More...
 
uint16_t size () const
 Number of entries in the filter's database. More...
 

Protected Attributes

std::list< Entrydb
 Filter database.
 

Detailed Description

This class provides support for generating a response when a response is required from an incoming message received, but no response was generated.

Definition at line 421 of file protocol.h.

Member Function Documentation

◆ operator()()

bool HF::Protocol::Filters::ResponseRequired::operator() ( const HF::Protocol::Packet packet)

Checks if the given packet, is a retransmission according to the filters database data.

The given packet and payload are used to update the filters database.

Parameters
[in]packetreference to the incoming packet.
Return values
truethe packet is a retransmission.
falsethe packet is a not retransmission.

◆ size()

uint16_t HF::Protocol::Filters::ResponseRequired::size ( ) const
inline

Number of entries in the filter's database.

Returns
the number of entries in the filter's database.

Definition at line 464 of file protocol.h.

References db.

465  {
466  return db.size();
467  }
std::list< Entry > db
Filter database.
Definition: protocol.h:442

The documentation for this class was generated from the following file: