sdc_alarm.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #ifndef __SDC_ALARM_H__
  2. #define __SDC_ALARM_H__
  3. namespace HWYolov3App
  4. {
  5. typedef struct {
  6. char alarmName[64];
  7. char alarmSource[32];
  8. char metaData[0];
  9. } ALARM_REPORT_PARAM;
  10. typedef enum {
  11. HBTP_METHOD_UNDEF = 0,
  12. HBTP_METHOD_CREATE = 1,
  13. HBTP_METHOD_GET = 2,
  14. HBTP_METHOD_UPDATE = 3,
  15. HBTP_METHOD_DELETE = 4,
  16. HBTP_METHOD_BUTT,
  17. }HBTP_METHOD_E;
  18. typedef enum {
  19. ALARM_URI_CONFIG_PARAM = 0,
  20. ALARM_URI_INPUT_REGISTER = 1,
  21. ALARM_URI_OUTPUT_REGISTER = 2,
  22. ALARM_URI_EVENT_PUBLISH = 3,
  23. ALARM_URI_SOURCE_PARAM = 4,
  24. ALARM_URI_ACTION_PARAM = 5,
  25. ALARM_URI_APP_PARAM = 6,
  26. ALARM_URI_APPLANG_PARAM = 7,
  27. ALARM_URI_ACTIONLANG_PARAM = 8,
  28. ALARM_URI_RESTORE_DEFAULT_DATA = 9,
  29. } ALARM_URI_RES;
  30. class AlarmDemo
  31. {
  32. public:
  33. AlarmDemo(void);
  34. ~AlarmDemo(void);
  35. int32_t example(void);
  36. int32_t InitFd(void);
  37. int32_t CreateSource(void);
  38. int32_t EventHandle(HBTP_METHOD_E method);
  39. private:
  40. AlarmDemo(const AlarmDemo&);
  41. AlarmDemo& operator=(const AlarmDemo&);
  42. AlarmDemo(const AlarmDemo&&);
  43. AlarmDemo& operator=(const AlarmDemo&&);
  44. int32_t m_fd;
  45. };
  46. }
  47. #endif /* __SDC_ALARM_H__ */