EVENGINE_API_FOUNDATION public API. 更多...
#include <Runtime.h>
Public 成员函数 | |
| const ReflectedAttribute * | findAttribute (const std::string &name) const noexcept |
| Looks up an attribute by name; nullptr when absent. | |
| float | attrFloat (const std::string &name, float def=0.f) const noexcept |
Numeric attribute value; def when missing or not numeric. | |
| bool | attrBool (const std::string &name, bool def=false) const noexcept |
Boolean attribute value; def when missing or not boolean. | |
| std::string | attrString (const std::string &name, const std::string &def={}) const |
Raw string attribute value; def when missing. | |
| std::vector< std::string > | attrOptions (const std::string &name) const |
| Comma-separated string attribute split into trimmed options. | |
Public 属性 | |
| std::string | name |
| ssq::Type | type = ssq::Type::NULLPTR |
| bool | method = false |
| std::vector< ReflectedAttribute > | attributes |
| ReflectedValue | value |
| Live value; empty for class-level reflection. | |
详细描述
成员函数说明
◆ attrBool()
|
noexcept |
Boolean attribute value; def when missing or not boolean.
在文件 Runtime.cpp 第 346 行定义.
引用了 name , 以及 eve::ReflectedAttribute::value.
◆ attrFloat()
|
noexcept |
Numeric attribute value; def when missing or not numeric.
在文件 Runtime.cpp 第 336 行定义.
引用了 end, name, eve::ReflectedAttribute::value , 以及 value.
◆ attrOptions()
| std::vector< std::string > eve::ReflectedMember::attrOptions | ( | const std::string & | name | ) | const |
Comma-separated string attribute split into trimmed options.
在文件 Runtime.cpp 第 364 行定义.
引用了 findAttribute(), first, name, options , 以及 eve::ReflectedAttribute::value.
◆ attrString()
| std::string eve::ReflectedMember::attrString | ( | const std::string & | name, |
| const std::string & | def = {} |
||
| ) | const |
Raw string attribute value; def when missing.
在文件 Runtime.cpp 第 358 行定义.
引用了 findAttribute(), name , 以及 eve::ReflectedAttribute::value.
被这些函数引用 eve::ui::DatabasePanel::sync().
◆ findAttribute()
|
noexcept |
Looks up an attribute by name; nullptr when absent.
在文件 Runtime.cpp 第 329 行定义.
引用了 name.
被这些函数引用 attrOptions() , 以及 attrString().
类成员变量说明
◆ attributes
| std::vector<ReflectedAttribute> eve::ReflectedMember::attributes |
◆ method
◆ name
| std::string eve::ReflectedMember::name |
被这些函数引用 attrOptions() , 以及 attrString().
◆ type
◆ value
| ReflectedValue eve::ReflectedMember::value |
该结构体的文档由以下文件生成:
- src/engine/common/Runtime.h
- src/engine/common/Runtime.cpp