9 #ifndef PROTOCOLHANDLER_H
10 #define PROTOCOLHANDLER_H
25 virtual int type()
const;
Interface class for protocol handlers.
Stores the location of a message in a buffer using a start position and a size.
Message protocol handling class.
virtual int maximumMessageSize() const
Returns the maximum size of a valid message of this protocol including preambles and checksums.
static int composeMessage(XsByteArray &raw, const XsMessage &msg)
Compose a message for transmission.
virtual MessageLocation findMessage(XsMessage &rcv, const XsByteArray &raw) const
Find the first message in the raw byte stream.
virtual int type() const
Returns the type of the protocol handler.
virtual int minimumMessageSize() const
Returns the minimum size of a valid message of this protocol including preambles and checksums.
virtual ~ProtocolHandler()
Destructor.
ProtocolHandler()
Default constructor.
Structure for storing a single message.
#define XSENS_DISABLE_COPY(className)
Add this macro to the start of a class definition to prevent automatic creation of copy functions.
struct XsByteArray XsByteArray