7 #ifndef SENSORGROUPTHREAD_H 8 #define SENSORGROUPTHREAD_H 15 #include <boost/range/algorithm/remove_if.hpp> 16 #include <boost/algorithm/string/trim.hpp> 48 const std::unordered_map<
unsigned char, std::shared_ptr<SensorGroup>>&
70 std::unordered_map<unsigned char, std::shared_ptr<SensorGroup>>
83 #endif // SENSORGROUPTHREAD_H SensorGroupThread(std::shared_ptr< Syntax > syntax, ThreadDispatcher *dispatcher, const std::unordered_map< unsigned char, std::shared_ptr< SensorGroup >> &sensorGroups)
SensorGroupThread constructor.
Header file for the CommunicationThread class.
The ThreadDispatcher class coordinates other communication threads and handles start up and shut down...
boost::function< void(const std::string &)> errorCallbackPtr
boost::function< void(const std::string &)> errorCallbackPtr
void workerFunction()
Worker function, responsible for parsing sensor messages and calling the correct sensor group process...
ThreadDispatcher * dispatcher
Header file for the ThreadDispatcher class.
std::shared_ptr< Syntax > syntax
Header file for the SensorGroup class.
void stopThread()
Stop parsing incoming sensor group messages.
void registerErrorCallback(errorCallbackPtr error)
Register an error callback that can be called to treat occuing communication and parsing errors...
The CommunicationThread class is the abstract base class of all thread objects used in the communicat...
std::unordered_map< unsigned char, std::shared_ptr< SensorGroup > > sensorGroups
void startThread()
Start parsing incoming sensor group messages.
The SensorGroupThread class implements functionality to extract the group identifier of an incoming s...