7 #ifndef READINGTHREAD_H 8 #define READINGTHREAD_H 15 #include <boost/range/algorithm/remove_if.hpp> 65 std::queue<std::string>
data;
75 #endif // READINGTHREAD_H Header file for the CommunicationConfig class.
void workerFunction()
Worker function, responsible for polling the serial input buffer.
void registerErrorCallback(errorCallbackPtr error)
Register an error function pointer to handle errors during communication.
Header file for the CommunicationThread class.
The ThreadDispatcher class coordinates other communication threads and handles start up and shut down...
ThreadDispatcher * dispatcher
boost::function< void(const std::string &)> errorCallbackPtr
The ReadingThread class implements threadded polling of the serial input buffer.
std::shared_ptr< Syntax > syntax
Header file for the ThreadDispatcher class.
ReadingThread(std::shared_ptr< Syntax > syntax, ThreadDispatcher *dispatcher)
ReadingThread constructor.
void startThread()
Start the polling of the serial input buffer..
void stopThread()
Stop the polling of the serial input buffer..
The CommunicationThread class is the abstract base class of all thread objects used in the communicat...
std::queue< std::string > data
const bool isQueueEmpty() const
Is a new line availible?
std::string getData()
Get retrieved data vom the serial input buffer.