#include <MessageProcessors.h>
Public Member Functions | |
MsgHandler (uint16_t msgType, FieldUpdateFunction fn) | |
MsgHandler (const MsgHandler &other)=default | |
MsgHandler & | operator= (const MsgHandler &other)=default |
uint16_t | getKey () const |
void | invoke (TagValueRemoteConnector *rc, FieldAndValue *fv, MessageProcessorInfo *info) |
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.