Go to the documentation of this file.
65 #ifndef IPROTOCOLHANDLER_H
66 #define IPROTOCOLHANDLER_H
124 virtual int type()
const = 0;
A list of uint8_t values.
virtual void ignoreMaximumMessageSize(bool ignore)
Tells the protocol handler to ignore/expand its maximum message size.
virtual int type() const =0
Returns the type of the protocol handler.
virtual int maximumMessageSize() const =0
Returns the maximum size of a valid message.
Interface class for protocol handlers.
virtual int minimumMessageSize() const =0
Returns the minimum size of a valid message.
virtual bool setEnable(bool enable)
Enables or disables the protocol handler if supported. A disabled protocol handler ignores and discar...
Structure for storing a single message.
virtual MessageLocation findMessage(XsProtocolType &type, const XsByteArray &raw) const =0
Find the first message in the raw byte stream.
virtual XsMessage convertToMessage(MessageLocation &location, const XsByteArray &raw) const =0
Converts raw data using location into a XsMessage object.
XsProtocolType
Protocol types (XsDevice::enableProtocol())
virtual ~IProtocolHandler()
Destructor.
Stores the location of a message in a buffer using a start position and a size.