📄 isa.h
字号:
// ISA.h : main header file for the ISA DLL
//
// create : Benny 2001.7.25
#if !defined(AFX_ISA_H__F0928533_6BD2_4569_BDDA_683438F95080__INCLUDED_)
#define AFX_ISA_H__F0928533_6BD2_4569_BDDA_683438F95080__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#ifndef __AFXWIN_H__
#error include 'stdafx.h' before including this file for PCH
#endif
#include "resource.h" // main symbols
#include "ComPort.h"
/////////////////////////////////////////////////////////////////////////////
// CISAApp
// See ISA.cpp for the implementation of this class
//
class CISAApp : public CWinApp
{
public:
CISAApp();
~CISAApp();
public:
CList<CComPort*,CComPort*> m_ListComPort; // 串口链表
CList<CDevice*,CDevice*> m_ListDevice; // 设备链表
UINT m_uTimeOut; // 超时时间
UINT m_uTimer; // 定时器时间
UINT m_uTimes; // 重操作次数
UINT m_uWait; // 超时三次后的轮询时间
UINT m_uCTTimer; // 对时时间
UINT m_uSimulationTime; // 召唤模拟量时间
UINT m_uSwitchTime; // 召唤开关量时间
UINT m_uAnaTime; // 召唤遥测量时间
UINT m_uPulTime; // 召唤电度量时间
UINT m_uAllDgtTime; // 召唤全遥信时间
public:
int SendPremMessage( UINT msg, WPARAM wParam, LPARAM lParam );
void CommCallBack( UINT uMsg, HANDLE handle, WPARAM wParam, LPARAM lParam );
void TimerProc(); // 定时器函数
nsCOMPtr<nsIRdbTable> m_pAccTable;
nsCOMPtr<nsIRdbTable> m_pProtTable;
nsCOMPtr<nsIRdbTable> m_pAnaTable;
nsCOMPtr<nsIRdbTable> m_pDzhTable;
nsCOMPtr<nsIRdbTable> m_pDiagTable;
nsCOMPtr<nsIRdbTable> m_pAnaValueTable;
protected:
int InitPrem(); // 初始化
void ExitPrem(); // 退出
CComPort* GetComPort( HANDLE handle ); // 由串口句柄得到串口对象指针
CComPort* GetComPort( UINT uPort ); // 由串口端口号得到串口指针
CDevice* GetDevice( BYTE btAddr ); // 由设备地址得到设备对象指针
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CISAApp)
//}}AFX_VIRTUAL
//{{AFX_MSG(CISAApp)
// NOTE - the ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_ISA_H__F0928533_6BD2_4569_BDDA_683438F95080__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -