📄 valueobject.h
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -