NettyHttpCarInfo.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. * @Description:
  3. * @Version: 1.0
  4. * @Autor: lishengyin
  5. * @Date: 2021-11-04 15:59:10
  6. * @LastEditors: lishengyin
  7. * @LastEditTime: 2021-11-24 15:17:42
  8. */
  9. #pragma once
  10. #include <iostream>
  11. #include <vector>
  12. #include "Util/logger.h"
  13. #include "Util/NoticeCenter.h"
  14. #include "Poller/EventPoller.h"
  15. #include "Player/PlayerProxy.h"
  16. #include "Rtmp/RtmpPusher.h"
  17. #include "Common/config.h"
  18. #include "Pusher/MediaPusher.h"
  19. #include "Extension/Frame.h"
  20. #include "Util/SqlPool.h"
  21. #include "Network/TcpClient.h"
  22. #include "Poller/Timer.h"
  23. #include "NettyHttpTrainInfo.h"
  24. #include "NettyHttpCarDevData.h"
  25. using namespace std;
  26. class NettyHttpCarInfo
  27. {
  28. public:
  29. std::string id;
  30. std::string pid;
  31. std::string label;
  32. NettyHttpTrainInfo attr;
  33. std::string attr1;
  34. std::string child;
  35. vector<NettyHttpCarDevData> children;
  36. public:
  37. NettyHttpCarInfo();
  38. ~NettyHttpCarInfo();
  39. /**
  40. * @description: json转换为对象
  41. * @param {Value&} object
  42. * @return {*}
  43. */
  44. bool jsonToObject(const rapidjson::Value& object);
  45. /**
  46. * @description: 数据同步
  47. * @param {*}
  48. * @return {*}
  49. */
  50. bool NettyClientDataSync();
  51. };