You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.1 KiB
C++
36 lines
1.1 KiB
C++
#pragma once
|
|
#include "GlobalDefine.h"
|
|
#include "EnumPropertieType.h"
|
|
|
|
#include "LabVecRang.h"
|
|
|
|
|
|
//所有全局模块管理对象的基类
|
|
//CreatGridProperty 是在Ini 之前运行
|
|
class CModule
|
|
{
|
|
public:
|
|
CModule(void);
|
|
virtual ~CModule(void){};
|
|
virtual void OnAppInitialize(){};//软件打开时
|
|
virtual void OnDeviceInit(){};//响应设备初始化
|
|
//每个模块自己控制属性栏的结构,并且绑定属性栏和属性值
|
|
virtual CMFCPropertyGridProperty *CreatGridProperty(){return NULL;};
|
|
//每个模块自己响应属性的改变
|
|
virtual void OnPropertyChanged(){};
|
|
virtual MODULE GetModuleType(){return _MODULE_NULL;};//必须返回模块的类型
|
|
virtual void Draw(CDC* pDC){};//在pDC 绘制一些内容
|
|
virtual void WriteWorkFileExt(vector<CLab> &LabVec){};
|
|
virtual void ReadWorkFile(CLabVecRang &LabVecRang){};
|
|
virtual void OnExitApp(){};//退出软件时
|
|
virtual void TestFunc(){};//测试功能
|
|
virtual CString GetParDirName(){return "";};
|
|
virtual void SwitchParameter(bool bRunAtDevice){};//一键切换参数(bRunAtDevice 是否在设备上运行)
|
|
virtual void OnClearWarningState(){};//响应清除报警
|
|
void SaveWorkFile(vector<CLab> &LabVec);
|
|
|
|
protected:
|
|
|
|
};
|
|
|