Interface class for protocol manager. More...
#include <iprotocolmanager.h>
Public Member Functions | |
virtual XsMessage | convertToMessage (XsProtocolType &type, MessageLocation &location, const XsByteArray &raw)=0 |
Converts raw data using location into a XsMessage object. More... | |
virtual MessageLocation | findMessage (XsProtocolType &type, const XsByteArray &raw)=0 |
Will let all supported protocols attempt finding a raw message in the given raw data. More... | |
virtual bool | validateMessage (XsMessage const &msg) const =0 |
Performs a sanity check on the given message. More... | |
virtual | ~IProtocolManager () |
Destructor. More... | |
Interface class for protocol manager.
Describes the interfaces of a manager of different protocols
Definition at line 75 of file iprotocolmanager.h.
|
inlinevirtual |
Destructor.
Definition at line 80 of file iprotocolmanager.h.
|
pure virtual |
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. |
Implemented in ProtocolManager, and SimpleProtocolManager.
|
pure virtual |
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 |
Implemented in ProtocolManager, and SimpleProtocolManager.
|
pure virtual |
Performs a sanity check on the given message.
msg | The message to check |
Implemented in SimpleProtocolManager, and ProtocolManager.