/********************************************************************* * * 文 件: ParamMag.h 声明极限值管理相关接口 * * 版权所有: Shanghai Baosight Software Co., Ltd. * * 概述: * : * : * * 版本历史 * 1.0 2010-09-02 echo_li 增加注释 * *********************************************************************/ #ifndef _PARAM_MAG_H #define _PARAM_MAG_H #include #include "dbinc/T_LOV_PARAM.h" using namespace log4cplus; /********************************************************************* * 类 名: //TODO请补充类名称 * 版权所有: Shanghai Baosight Software Co., Ltd. * 类 职 责: * : * : * 版本历史 * 1.0 2010-09-02 echo_li 增加注释 * *********************************************************************/ class ParamMag{ public: /********************************************************************** * 概述: 获得PlantParam表中数值型的值,2009-3-26 * 函数名: GetNumberParamValue * 返回值: short * 参数列表: 参数类型 取值范围 描述 * paramName: [in] const string& 参数名 * datavalue: [out]float & 取得的参数值 * type: [in] const string& 自定义识别名 * * 版本历史 * 1.0 2010-09-02 echo_li * **********************************************************************/ static short GetNumberParamValue(const string& paramName, float& datavalue, const string& type="L3"); /********************************************************************** * 概述: 获得PlantParam表中数值型的值 * 函数名: GetCharParamValue * 返回值: short * 参数列表: 参数类型 取值范围 描述 * paramName: [in] const string& 参数名 * pvalue: [out]char * 取得的参数值 * type: [in] const string& 自定义识别名 * * 版本历史 * 1.0 2010-09-02 echo_li * **********************************************************************/ static short GetCharParamValue(const string& paramName, char* pvalue, const string& type="L3" ); private: static T_LOV_PARAM m_plantParam; }; #endif //Endif _LIMITS_MAG_H