NettyHttpCarDevData.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. /*
  2. * @Description:
  3. * @Version: 1.0
  4. * @Autor: lishengyin
  5. * @Date: 2021-11-08 16:45:31
  6. * @LastEditors: lishengyin
  7. * @LastEditTime: 2021-11-24 15:20:26
  8. */
  9. #pragma once
  10. #include <iostream>
  11. #include <rapidjson/document.h>
  12. #include <rapidjson/rapidjson.h>
  13. #include <rapidjson/stringbuffer.h>
  14. #include <rapidjson/writer.h>
  15. #include <vector>
  16. #include "NettyHttpTrainInfo.h"
  17. using namespace std;
  18. class CarDevData
  19. {
  20. public:
  21. std::string addTime;
  22. std::string updateTime;
  23. int createBy;
  24. int updateBy;
  25. int enableFlag;
  26. std::string attr1;
  27. std::string attr2;
  28. std::string attr3;
  29. int appId;
  30. int dvId;
  31. std::string parentDvId;
  32. std::string linkDvId;
  33. int carId;
  34. int carriageId;
  35. int deviceType;
  36. int deviceSubType;
  37. int deviceControlType;
  38. int deviceSource;
  39. std::string deviceUuid;
  40. std::string deviceNum;
  41. std::string birdDeviceCode;
  42. std::string deviceName;
  43. std::string deviceUserName;
  44. std::string devicePassWord;
  45. std::string localIp;
  46. int port;
  47. std::string deviceMac;
  48. std::string stream;
  49. std::string place;
  50. std::string longitude;
  51. std::string latitude;
  52. std::string coX;
  53. std::string coY;
  54. std::string coZ;
  55. std::string uploadId;
  56. std::string imgUrl;
  57. std::string remark;
  58. std::string orderNo;
  59. public:
  60. CarDevData() {}
  61. ~CarDevData() {}
  62. bool jsonToObject(const rapidjson::Value& object);
  63. };
  64. class CarBasicData
  65. {
  66. public:
  67. std::string id;
  68. std::string pid;
  69. std::string label;
  70. CarDevData attr;
  71. int attr1;
  72. std::string child;
  73. std::string children;
  74. public:
  75. CarBasicData() {}
  76. ~CarBasicData() {}
  77. bool jsonToObject(const rapidjson::Value& object);
  78. };
  79. class NettyHttpCarDevData
  80. {
  81. public:
  82. std::string id;
  83. std::string pid;
  84. std::string label;
  85. NettyHttpTrainInfo attr;
  86. std::string attr1;
  87. std::string child;
  88. vector<CarBasicData> children;
  89. public:
  90. NettyHttpCarDevData() {}
  91. ~NettyHttpCarDevData() {}
  92. bool jsonToObject(const rapidjson::Value& object);
  93. };