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