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.

35 lines
1.1 KiB

​
​
​
​
​
12 months ago
​
​
​
​
​
​
​
12 months ago
​
12 months ago
​
​
12 months ago
​
12 months ago
​
​
12 months ago
​
​
​
​
​
  1. #ifndef __TARGET_PIPELINE_HEADERS__
  2. #define __TARGET_PIPELINE_HEADERS__
  3. #include "../../components/base/basicEvent.h"
  4. #include "../../components/base/basicMutex.h"
  5. #include "../../components/base/basicThread.h"
  6. #include "dataBinder.h"
  7. #include "kernelEventFilter.h"
  8. typedef struct S_TargetPipeLineItem{
  9. uint8_t stage;
  10. }TargetPipeLineItem;
  11. typedef std::queue<TARGET_DATA *> Q_TARGET_QUEUE;
  12. class targetPipeLine: public basicThread{
  13. private:
  14. basicLogCollection * m_pLog;
  15. dataBinder * m_pDBC;
  16. uint32_t m_nNodeId;
  17. uint32_t m_nTargetCamId;
  18. basicMutex m_mTargetProtector;
  19. basicEventHeap * m_pEventHeap;
  20. Q_TARGET_QUEUE m_qTargets;
  21. vectorKernelEventFilters m_vTargetFilters;
  22. bool loadFilters();
  23. protected:
  24. virtual void m_fThreadProc( void );
  25. public:
  26. explicit targetPipeLine( uint32_t node_id, uint32_t bind_cam_id = 0 );
  27. ~targetPipeLine();
  28. bool push( TARGET_DATA *ptr );
  29. };
  30. #endif