|
| errc_t | accept (PropertyVisitor &visitor, const void *container) override |
| |
|
| Property (StringView name, StringView desc, FPropertyGet getter, FPropertySet setter) |
| |
|
| Property (FPropertyGet getter, FPropertySet setter) |
| |
|
| Property ()=default |
| |
|
| Property (StringView name, StringView desc, FPropertyGet getter, FPropertySet setter) |
| |
|
| Property (FPropertyGet getter, FPropertySet setter) |
| |
| virtual errc_t | getValueDouble (const void *container, double &value)=0 |
| |
| virtual errc_t | setValueDouble (void *container, double value)=0 |
| |
| virtual errc_t | getValueInt (const void *container, int &value)=0 |
| |
| virtual errc_t | setValueInt (void *container, int value)=0 |
| |
| virtual errc_t | getValueBool (const void *container, bool &value)=0 |
| |
| virtual errc_t | setValueBool (void *container, bool value)=0 |
| |
| virtual errc_t | getValueString (const void *container, std::string &value)=0 |
| |
| virtual errc_t | setValueString (void *container, StringView value)=0 |
| |
|
| Field (StringView name, StringView desc="") |
| |
|
const std::string & | name () const |
| |
| void | setName (StringView name) |
| |
|
const std::string & | desc () const |
| |
| void | setDesc (StringView desc) |
| |
反射属性类(POD类型: plain old data)
POD类型是指简单的数据类型,如int、float、double、bool等。
- 待办事项
- 拟作为int, double, bool等的基础属性类,其他属性类继承自该类。