valueobject.h
来自「Linux 环境下」· C头文件 代码 · 共 33 行
H
33 行
#ifndef _VALUE_OBJECT_
#define _VALUE_OBJECT_
#include "object.h"
#include "objectstructsdef.h"
class CValueObject : public CBaseObject
{
public:
CValueObject(PVALUEOBJ pObj) : CBaseObject(pObj->id, pObj->stid, pObj->name, pObj->code)
{
type = pObj->type;
unit = pObj->unit;
atod = pObj->atod;
scalemax = pObj->scalemax;
scalemin = pObj->scalemin;
curvalue = 0.0f;
}
~CValueObject() { }
unsigned char GetType() { return type;}
string GetUnit() { return unit;}
int GetAtod() { return atod;}
float GetScaleMax() { return scalemax;}
float GetScaleMin() { return scalemin;}
protected:
float curvalue;
unsigned char type;
string unit;
int atod;
float scalemax;
float scalemin;
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?