66 lines
1.8 KiB
C++
66 lines
1.8 KiB
C++
/*********************************************************************
|
|
*
|
|
* 文 件: StorageDB.h 跟踪处理模块
|
|
*
|
|
* 版权所有: Shanghai Baosight Software Co., Ltd.
|
|
* %USER%
|
|
*********************************************************************/
|
|
#ifndef _COIL_STORAGEDB_H
|
|
#define _COIL_STORAGEDB_H
|
|
#include <Ice/BuiltinSequences.h>
|
|
#include <zlib/coilDef.h>
|
|
#include <zlib/MemCachedClient.h>
|
|
#include <zlib/MemTrk.h>
|
|
#include <glob/AutoTele.h>
|
|
#include <glob/BinaryTele.h>
|
|
#include <glob/DataAccess.h>
|
|
#include <proxy/MessageICE.h>
|
|
//#include <zlib/RestAPI.h>
|
|
using namespace baosight;
|
|
|
|
/*********************************************************************
|
|
* 类 名: StorageDB
|
|
* 版权所有: Shanghai Baosight Software Co., Ltd.
|
|
*
|
|
*********************************************************************/
|
|
class StorageDB
|
|
{
|
|
public:
|
|
StorageDB();
|
|
virtual ~StorageDB();
|
|
/**********************************************************************
|
|
* 概述: 功能分派
|
|
*
|
|
**********************************************************************/
|
|
int dispatch(int eventNo,const ::Ice::ByteSeq& seq);
|
|
|
|
public:
|
|
|
|
/**********************************************************************
|
|
* 概述: //存储
|
|
**********************************************************************/
|
|
int StoreModeString(int eventNo,const ::Ice::ByteSeq& seq);
|
|
int StoreModeBinary(int eventNo,const ::Ice::ByteSeq& seq);
|
|
int InitEquipHealth(void);
|
|
int StatEquipHealth(void);
|
|
|
|
private:
|
|
|
|
int StoreWPD(int eventNo,const ::Ice::ByteSeq& seq);
|
|
|
|
private:
|
|
short Proxy(int eventNo,const string& proxyName, const char* str,int length);
|
|
|
|
|
|
private:
|
|
|
|
AutoTele *mp_atele;
|
|
BinaryTele *mp_btele;
|
|
DataAccess *mp_daccess;
|
|
MemCachedClient m_mc;
|
|
CMemTrk* mp_trk;
|
|
vector<string> m_pkcolumn;
|
|
};
|
|
|
|
#endif
|