A very basic protocol manager. More...
#include <simpleprotocolmanager.h>
Public Member Functions | |
XsMessage | convertToMessage (XsProtocolType &type, MessageLocation &location, const XsByteArray &raw) override |
Converts raw data using location into a XsMessage object. More... | |
MessageLocation | findMessage (XsProtocolType &type, const XsByteArray &raw) override |
Will let all supported protocols attempt finding a raw message in the given raw data. More... | |
bool | validateMessage (XsMessage const &msg) const override |
Performs a sanity check on the given message. More... | |
![]() | |
virtual | ~IProtocolManager () |
Destructor. More... | |
Private Attributes | |
ProtocolHandler | m_protocolHandler |
Standard protocol handler; used for finding messages. More... | |
A very basic protocol manager.
This protocol manager supports only the xbus protocol
Definition at line 74 of file simpleprotocolmanager.h.
|
inlineoverridevirtual |
Converts raw data using location into a XsMessage object.
type | The protocol type to use. |
location | The location of a message to convert from raw data. |
raw | The raw byte stream. |
Implements IProtocolManager.
Definition at line 86 of file simpleprotocolmanager.h.
|
inlineoverridevirtual |
Will let all supported protocols attempt finding a raw message in the given raw data.
type | The protocol type to us |
raw | The input raw byte array in which to look for a message |
Implements IProtocolManager.
Definition at line 79 of file simpleprotocolmanager.h.
|
inlineoverridevirtual |
Performs a sanity check on the given message.
msg | The message to check |
Implements IProtocolManager.
Definition at line 94 of file simpleprotocolmanager.h.
|
private |
Standard protocol handler; used for finding messages.
Definition at line 99 of file simpleprotocolmanager.h.