?? meterinterface.h
字號:
// MeterInterface.h: interface for the CMeterInterface class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_METERINTERFACE_H__EC49F8B9_D59F_44A1_B9CE_9BD06E9963EA__INCLUDED_)
#define AFX_METERINTERFACE_H__EC49F8B9_D59F_44A1_B9CE_9BD06E9963EA__INCLUDED_
#include "shmdb.h"
#include "MeterBase.h"
#include "MyCom.h"
#include "define.h"
/*
隨時(shí)采集的接口程序
用于對電表的直接操作
Init( BYTE meter_no )對接口按電表號為meter_no的參數(shù)進(jìn)行初始化,為真表示初始化成功。
bool GetData(BYTE *data,int &Len,int item);讀取數(shù)據(jù),data保存數(shù)據(jù)內(nèi)容,Len為數(shù)據(jù)長度,item為數(shù)據(jù)的項(xiàng)目
*/
class CMeterInterface
{
public:
CMeterInterface();
virtual ~CMeterInterface();
public:
BYTE GetMeterNo();
bool Init( BYTE meter_no );
bool GetData(BYTE *data,int &Len,int item);//
bool SetAddress(BYTE *address,int &Len);
bool SetClock(time_t *m_time = NULL);
private:
bool bGreate;
bool GreatShmDB();
bool GreatMeter(BYTE meter_no);
ShmMan *pShmDB;
CMeterBase *pMeter;
MyCom *pMyCom;
BYTE m_meter;
// BYTE m_Err_Code;
};
#endif // !defined(AFX_METERINTERFACE_H__EC49F8B9_D59F_44A1_B9CE_9BD06E9963EA__INCLUDED_)
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -