eis/inc/zlib/RestAPI.h

62 lines
1.6 KiB
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*********************************************************************
*
* 文 件: 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 <zlib/MemZone.h>
#include <glob/BinaryTele.h>
#include <proxy/MessageICE.h>
#include <zlib/LineDefine.h>
using namespace baosight;
/*********************************************************************
* 类 名: RestAPI
* 版权所有: Shanghai Baosight Software Co., Ltd.
* 类 职 责:用rest 接口显示zone 里面的最新钢卷数据FDaaitem对应的数据显示所有zone区域的机组最新数据
*
*********************************************************************/
class RestAPI
{
public:
RestAPI();
virtual ~RestAPI();
int ZoneTag(void);
int PotCoat(char* data);
int Radar(char* extId,string& outrest);
int ZoneTrack();
int PDOList();
int PDIList();
int TagMessage();
int PDIZONE(int eventNo,const ::Ice::ByteSeq& seq);
float getFdaaData(int eventNo,string itemName);
private:
vector<CMemZone*> v_memzone;
CMemTable<SignData>* mp_table;
BinaryTele* p_tele;
BinaryTele* mp_btele;
std::string tagmsg;
// map<string,map<int,string> > v_zones;
map<int, map<string,map<int,string> >> m_tele;
MemCachedClient m_mc;
CMemTrk* mp_trk;
FDA_DATA* mp_data;
PDO* mp_pdobase;
PDI* mp_pdibase;
};
#endif