You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.1 KiB

7 years ago
​
​
7 years ago
7 years ago
​
​
​
​
​
7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __LRF_CLIENTHANDLER_H_INCL__
  2. #define __LRF_CLIENTHANDLER_H_INCL__
  3. #include "../../data/protocol/protocolLGS3D_server.h"
  4. #include "../../data/net/netClientHandler.h"
  5. #include "LRF_Kernel.h"
  6. #include "../../components/base/basicLogCollection.h"
  7. /**
  8. * TODO: Add class description
  9. *
  10. * @author Gagua
  11. */
  12. class LRF_ClientHandler : public networkClientHandler, public protocolLGS3D_Server {
  13. private:
  14. basicLogCollection *m_pLog;
  15. LRF_Kernel *m_pKernelEngine;
  16. E_LRF_WORK_MODE m_bKernelWorkingMode;
  17. E_CLIENT_WORK_MODE m_bClientWorkingMode;
  18. thresholdNode *m_pWorkingSAF;
  19. EventsFIFO m_oOutputFIFO;
  20. uint32_t m_nWorkingSAF;
  21. uint32_t m_nCurrentSampleIDofBoardData;
  22. protected:
  23. bool packetHandler( protocolPackage *Package );
  24. public:
  25. // Constructor
  26. explicit LRF_ClientHandler( int SockFD );
  27. // Destructor
  28. virtual ~LRF_ClientHandler();
  29. bool attachEngine( basicEngine *ptr );
  30. void dispatchEvent( basicEvent *Evt );
  31. };
  32. #endif // __LRF_CLIENTHANDLER_H_INCL__