A list of uint8_t values.
void signalStopThread(void) override
Tells the thread to stop but does not wait for it to end.
virtual const char * parserType() const
virtual XsResultValue processBufferedData(const XsByteArray &rawIn, std::deque< XsMessage > &messages)=0
Read all messages from the buffered read data after adding new data supplied in rawIn.
void initFunction() override
Initializes the thread.
XsResultValue
Xsens result values.
int32_t innerFunction() override
The inner thread function.
DataParser()
Default constructor.
An event that can be set/reset and that can be waited for.
virtual void handleMessage(const XsMessage &message)=0
Handles a message.
Structure for storing a single message.
xsens::Mutex m_incomingMutex
A class for a standard thread that has to perform the same action repeatedly.
virtual XsResultValue readDataToBuffer(XsByteArray &raw)=0
Read available data from the open IO device.
A class for the data parsing on a separete thread.
void clear()
Clears the data queue.
xsens::WaitEvent m_newDataEvent
std::queue< XsByteArray > m_incoming
void terminate()
Terminates the thread.
void addRawData(const XsByteArray &arr)
Adds the raw data to an array.