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.

34 lines
602 B
C++

#pragma once
#include "module.h"
class CCommonPara
{
public:
CCommonPara(void)
{
m_ParaVal = 0;
};
public:
CString m_ParaName;
double m_ParaVal;
};
//常用参数管理
class CCommonParaMgr:public CModule
{
public:
CCommonParaMgr(void);
~CCommonParaMgr(void);
virtual void OnAppInitialize();//软件打开时
double GetCommonParaVal(CString ParName);
private:
void ReadCommonParaFile();
private:
vector<CCommonPara> m_CommonParaVec;
};
extern CCommonParaMgr *gCommonParaMgr;