dataanalyse.h
来自「MDF监控源码2」· C头文件 代码 · 共 46 行
H
46 行
#pragma once
#include "..\..\监测中心源码2.0\system.h"
#include "adoDB.h"
// CDataAnalyse 命令目标
//告警分析对象
//##ModelId=465286A40232
class _declspec(dllexport) CDataAnalyse : public CObject
{
public:
//##ModelId=465286A40243
CDataAnalyse();
//##ModelId=465286A40244
virtual ~CDataAnalyse();
// 设置父窗体
//##ModelId=465286A40251
int SetParent(CWnd * m_wnd);
CWnd *m_pWnd;
CAdoDB *m_pAdoDB;
// 分析告警
//##ModelId=465286A40266
int AnalyseAlarm(CInfoFrame& frame,LPVOID lpStatus,CString& strBuf); //分析告警数据包,参数lpStatus传
//送设备的当前状态,用于告警分析函数来比较其状态
virtual int ACmd44H( CInfoFrame& frame,LPVOID lpStatus); //获取告警响应包处理
int ACmd4DH( CInfoFrame& frame,CString strResult); //获取监测模块时间
int ACmd4EH( CInfoFrame& frame,CString strResult); //设置监测模块时间
int ACmd4FH( CInfoFrame& frame,CString strResult); //获取通信协议版本号
int ACmd50H( CInfoFrame& frame,CString strResult); //获取设备地址
int ACmd51H( CInfoFrame& frame,CString strResult); //获取设备厂家信息
int ACmd60H( CInfoFrame& frame,CString strResult); //设备告警上传
int ACmd61H( CInfoFrame& frame,CString strResult); //获取电话号码
int ACmdFEH( CInfoFrame& frame,CString strResult); //回复错误命令
// //得到当前端口的状态
//##ModelId=465286A402D2
int GetPortState(CString svmAddrCode, CString svmAddrSource, int iPort,CEquipmentPort &port);
// 设置数据库访问对象
void SetDBAccess(LPVOID p_adodb);
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?