/* * @Description: * @Version: 1.0 * @Autor: lishengyin * @Date: 2021-11-04 15:59:10 * @LastEditors: lishengyin * @LastEditTime: 2022-10-09 09:12:30 */ #pragma once #include #include #include "Util/logger.h" #include "Util/NoticeCenter.h" #include "Util/SqlPool.h" #include "Network/TcpClient.h" #include "Poller/Timer.h" #include "NettyHttpTrainInfo.h" #include "NettyHttpCarDevData.h" using namespace std; using namespace toolkit; class NettyHttpCarInfo { public: std::string id; std::string pid; std::string label; NettyHttpTrainInfo attr; std::string attr1; std::string child; vector children; public: NettyHttpCarInfo(); ~NettyHttpCarInfo(); /** * @description: json转换为对象 * @param {Value&} object * @return {*} */ bool jsonToObject(const rapidjson::Value& object); /** * @description: 数据同步 * @param {*} * @return {*} */ bool NettyClientDataSync(); };