66 lines
1.8 KiB
C
66 lines
1.8 KiB
C
|
|
/*********************************************************************
|
|||
|
|
*
|
|||
|
|
* <EFBFBD><EFBFBD> <EFBFBD><EFBFBD>: StorageDB.h <EFBFBD><EFBFBD><EFBFBD>ٴ<EFBFBD><EFBFBD><EFBFBD>ģ<EFBFBD><EFBFBD>
|
|||
|
|
*
|
|||
|
|
* <EFBFBD><EFBFBD>Ȩ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>: 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;
|
|||
|
|
|
|||
|
|
/*********************************************************************
|
|||
|
|
* <EFBFBD><EFBFBD> <EFBFBD><EFBFBD>: StorageDB
|
|||
|
|
* <EFBFBD><EFBFBD>Ȩ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>: Shanghai Baosight Software Co., Ltd.
|
|||
|
|
*
|
|||
|
|
*********************************************************************/
|
|||
|
|
class StorageDB
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
StorageDB();
|
|||
|
|
virtual ~StorageDB();
|
|||
|
|
/**********************************************************************
|
|||
|
|
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <EFBFBD><EFBFBD><EFBFBD>ܷ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
*
|
|||
|
|
**********************************************************************/
|
|||
|
|
int dispatch(int eventNo,const ::Ice::ByteSeq& seq);
|
|||
|
|
|
|||
|
|
public:
|
|||
|
|
|
|||
|
|
/**********************************************************************
|
|||
|
|
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD>: //<2F>洢
|
|||
|
|
**********************************************************************/
|
|||
|
|
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
|