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.

40 lines
1.3 KiB

7 years ago
​
​
7 years ago
7 years ago
​
​
​
​
​
7 years ago
​
​
​
​
​
​
​
​
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. #include "../../components/base/basicMutex.h"
  8. /**
  9. * TODO: Add class description
  10. *
  11. * @author Gagua
  12. */
  13. class LRF_ClientHandler : public networkClientHandler, public protocolLGS3D_Server {
  14. private:
  15. basicLogCollection * m_pLog;
  16. LRF_Kernel * m_pKernelEngine;
  17. LRF_WORK_MODE m_bKernelWorkingMode;
  18. CLIENT_WORK_MODE m_bClientWorkingMode;
  19. thresholdNode * m_pWorkingSAF;
  20. EventsFIFO m_oOutputFIFO;
  21. uint32_t m_nWorkingSAF;
  22. uint32_t m_nCurrentSampleIDofBoardData;
  23. basicMutex m_mOutputProtector;
  24. protected:
  25. bool packetHandler( protocolPackage *Package );
  26. public:
  27. // Constructor
  28. explicit LRF_ClientHandler( int SockFD, basicEngine *ptr = NULL );
  29. // Destructor
  30. virtual ~LRF_ClientHandler();
  31. virtual bool attachEngine( basicEngine *ptr );
  32. virtual bool getStatus( void );
  33. void dispatchEvent( EVENT_CONTAINER *Evt );
  34. };
  35. #endif // __LRF_CLIENTHANDLER_H_INCL__