#pragma once class CMessageQueue; class CEncoderSensor { public: CEncoderSensor(CMessageQueue* q); void Notify(int8_t * buffer,int32_t size); void SetSensorSocket(SensorSocket* can); void Start(); void Stop(); void SetChannelReady(bool ret){_channelReady=ret;} private: CMessageQueue* _message; SensorSocket * _socket; std::mutex _lock; bool _channelReady; };