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
821 B

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __OBJECT_CAMERA_HEADER__
  2. #define __OBJECT_CAMERA_HEADER__
  3. #include "../base/basicCameraInfo.h"
  4. #include "../base/basicEvtDispatcher.h"
  5. #include "../base/basicLogCollection.h"
  6. #include "../base/basicObject.h"
  7. struct basicCameraCommand
  8. {
  9. CORE_CAMERA_COMMANDS m_cCode;
  10. int m_iParam;
  11. bool m_bParam;
  12. unsigned int m_nDataSize;
  13. void * m_pData;
  14. };
  15. class objectCamera : public basicObject, public EventDispatchService
  16. {
  17. private:
  18. _Core_Logging_Collection * m_pLog;
  19. void Log(CSTR Msg);
  20. void Log(U8 Level, CSTR Msg);
  21. protected:
  22. struct basicCameraInfo * m_pSettings;
  23. virtual bool init(void) {}
  24. public:
  25. objectCamera();
  26. objectCamera(_Core_Logging_Collection * Log, basicCameraInfo * Info);
  27. ~objectCamera();
  28. virtual void dispatch(basicEvent * Evt);
  29. };
  30. #endif