tcMenu
Public Member Functions | List of all members
MsgHandler Class Reference

#include <MessageProcessors.h>

Public Member Functions

 MsgHandler (uint16_t msgType, FieldUpdateFunction fn)
 
 MsgHandler (const MsgHandler &other)=default
 
MsgHandleroperator= (const MsgHandler &other)=default
 
uint16_t getKey () const
 
void invoke (TagValueRemoteConnector *rc, FieldAndValue *fv, MessageProcessorInfo *info)
 

Detailed Description

Each incoming message needs to have a MsgHandler associated with it. It maps the message type to a function that can process the message fields as they arrive. It will be called every time there is a new field on a message, it should at a minimum be able to process the field updates end check for the end of the message.

See also
FieldAndValue

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