eis/inc/zcus/ReadIHDB.h

38 lines
844 B
C++

#ifndef _READ_IHDB_H
#define _READ_IHDB_H
#include <zhd/IhyperDBcommon.h>
#include <zhd/data_types.h>
#include <zhd/error_code.h>
#include <zhd/hd3Enum.h>
#include <zhd/hd3MaskDefine.h>
#include <zhd/hd3Struct.h>
#include <zhd/hdKingAPI.h>
#include <zhd/IhyperDBcommon.h>
using namespace baosight;
using namespace std;
class ReadIHDB
{
private:
HD3Connection conn;
bool m_isconn;
HD3PtTagProp normalTag;
HD3TimeRegion timeRegion;
HD3StRelatedParam stParam;
int32 nRecNumQueried;
public:
ReadIHDB();
virtual ~ReadIHDB();
public:
int connectDB();
void disConnectDB(int retcode);
int readByTime(string tagName,time_t start,time_t end,float *value);
int modify_tag_prop(string tagName);
int getTagNum(string tagName,time_t start,time_t end);
double statsTag(string tagName,time_t start,time_t end,short nStatsType);
};
#endif