1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- /*
- * @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 <iostream>
- #include <vector>
- #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<NettyHttpCarDevData> children;
- public:
- NettyHttpCarInfo();
- ~NettyHttpCarInfo();
- /**
- * @description: json转换为对象
- * @param {Value&} object
- * @return {*}
- */
- bool jsonToObject(const rapidjson::Value& object);
- /**
- * @description: 数据同步
- * @param {*}
- * @return {*}
- */
- bool NettyClientDataSync();
- };
|