12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- #ifndef _ATTRFLOAT_H
- #define _ATTRFLOAT_H
- #include "attribute.h"
- class _float : public Attribute {
- public:
-
- _float(const wchar_t *name=NULL, double default_val=0.f) : Attribute(name) {
- setValueAsDouble(default_val, true);
- }
-
-
- virtual int getAttributeType() { return AttributeType::FLOAT; }
-
-
- virtual const wchar_t *getConfigGroup() { return L"studio.configgroup.float"; }
-
-
- operator double() { return getValueAsDouble(); }
-
-
- double operator =(double newval) { return setValueAsDouble(newval) ? newval : getValueAsDouble(); }
- };
- #endif
|