1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- #ifndef _ATTRINT_H
- #define _ATTRINT_H
- #include "attribute.h"
- class _int : public Attribute {
- public:
-
- _int(const wchar_t *name=NULL, int default_val=0) : Attribute(name) {
- setValueAsInt(default_val, true);
- }
-
-
- virtual int getAttributeType() { return AttributeType::INT; }
-
-
- virtual const wchar_t *getConfigGroup() { return L"studio.configgroup.int"; }
-
-
- operator int() { return getValueAsInt(); }
-
- int operator =(int newval) { return setValueAsInt(newval) ? newval : getValueAsInt(); }
- };
- #endif
|