⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dataanalyse.h

📁 MDF监控源码2
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -