NettyHttpCarInfo.h 1.0 KB

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