63 lines
1.6 KiB
C++
63 lines
1.6 KiB
C++
/*********************************************************************
|
||
*
|
||
* 文 件: RestAPI.h 跟踪处理模块
|
||
*
|
||
* 版权所有: Shanghai Baosight Software Co., Ltd.
|
||
* %USER%
|
||
*********************************************************************/
|
||
#ifndef _REST_API_H
|
||
#define _REST_API_H
|
||
#include "T_PDO_LIST.h"
|
||
#include "T_DAT_RADAR.h"
|
||
#include <Ice/BuiltinSequences.h>
|
||
#include <zlib/MemTable.hpp>
|
||
#include <zlib/coilDef.h>
|
||
#include <zlib/MemCachedClient.h>
|
||
#include <zlib/MemTrk.h>
|
||
#include <glob/BinaryTele.h>
|
||
#include <proxy/MessageICE.h>
|
||
#include <zcus/LineDefine.h>
|
||
#include <zcus/CalcScore.h>
|
||
using namespace baosight;
|
||
|
||
/*********************************************************************
|
||
* 类 名: RestAPI
|
||
* 版权所有: Shanghai Baosight Software Co., Ltd.
|
||
* 类 职 责:用rest 接口显示zone 里面的最新钢卷数据(FDaaitem对应的数据),显示所有zone区域的机组最新数据
|
||
*
|
||
*********************************************************************/
|
||
class RestAPI
|
||
{
|
||
public:
|
||
RestAPI();
|
||
virtual ~RestAPI();
|
||
int ZoneTag(void);
|
||
int Radar(char* extId,string& outrest);
|
||
int ZoneTrack();
|
||
int PDOList();
|
||
int PDIList();
|
||
int TagMessage();
|
||
int PDIDetail(int eventNo,const ::Ice::ByteSeq& seq);
|
||
int getData(int* fda);
|
||
|
||
private:
|
||
short Proxy(int eventNo,const string& proxyName, const char* keyValue,int length);
|
||
|
||
|
||
private:
|
||
|
||
CMemTable<SignData>* mp_trksign;
|
||
BinaryTele* mp_btele;
|
||
|
||
//map<teleid, map<zone,map<pos,item> >> ;
|
||
map<int, map<string,map<int,string> >> m_tele;
|
||
MemCachedClient m_mc;
|
||
CMemTrk* mp_trk;
|
||
string UNIT_NO;
|
||
CMemTable<PDO>* mp_pdo;
|
||
CMemTable<PDI>* mp_pdi;
|
||
CalcScore* mp_calcscore;
|
||
};
|
||
|
||
#endif
|