🛰️航天仿真算法库 SpaceAST 0.0.1
载入中...
搜索中...
未找到
ast::PropertyTimePoint类 参考

#include <PropertyTimePoint.hpp>

+ 类 ast::PropertyTimePoint 继承关系图:

Public 类型

using InputType = TimePoint
 
using OutputType = TimePoint
 
- Public 类型 继承自 ast::Property
enum  EPropertyFlag { eReadable = 0x01 , eWritable = 0x02 }
 

Public 成员函数

errc_t getValueBool (const void *container, bool &value) override
 
errc_t setValueBool (void *container, bool value) override
 
errc_t getValueInt (const void *container, int &value) override
 
errc_t setValueInt (void *container, int value) override
 
errc_t getValueDouble (const void *container, double &value) override
 
errc_t setValueDouble (void *container, double value) override
 
errc_t getValueString (const void *container, std::string &value) override
 
errc_t setValueString (void *container, StringView value) override
 
errc_t accept (PropertyVisitor &visitor, const void *container) override
 
errc_t setValue (void *container, const InputType *value)
 
errc_t getValue (const void *container, OutputType *value)
 
 Property (StringView name, StringView desc, FPropertyGet getter, FPropertySet setter)
 
 Property (FPropertyGet getter, FPropertySet setter)
 
 Property ()=default
 
- Public 成员函数 继承自 ast::Property
 Property (StringView name, StringView desc, FPropertyGet getter, FPropertySet setter)
 
 Property (FPropertyGet getter, FPropertySet setter)
 
- Public 成员函数 继承自 ast::Field
 Field (StringView name, StringView desc="")
 
const std::string & name () const
 
void setName (StringView name)
 
const std::string & desc () const
 
void setDesc (StringView desc)
 

额外继承的成员函数

- Protected 成员函数 继承自 ast::Property
A_ALWAYS_INLINE errc_t getValue (void *container, void *value)
 
A_ALWAYS_INLINE errc_t setValue (void *container, const void *value)
 
- Protected 属性 继承自 ast::Property
FPropertyGet getter_ {nullptr}
 
FPropertySet setter_ {nullptr}
 
- Protected 属性 继承自 ast::Field
std::string name_
 
std::string desc_
 

详细描述

时间点属性

时间点属性,包含属性的名称、描述等信息

成员函数说明

◆ accept()

errc_t ast::PropertyTimePoint::accept ( PropertyVisitor & visitor,
const void * container )
overridevirtual

接受访问者

参数
visitor访问者对象
container容器对象指针
返回
errc_t 错误码

实现了 ast::Property.

◆ getValue()

errc_t ast::PropertyTimePoint::getValue ( const void * container,
OutputType * value )
inline

获取属性值(时间点类型)

参数
container容器指针
value属性值指针
返回
0 成功,其他值 失败

◆ getValueBool()

errc_t ast::PropertyTimePoint::getValueBool ( const void * container,
bool & value )
overridevirtual

获取属性值(bool类型)

参数
container容器对象指针
value指向bool类型变量的引用,用于存储属性值
返回
errc_t 错误码

实现了 ast::Property.

◆ getValueDouble()

errc_t ast::PropertyTimePoint::getValueDouble ( const void * container,
double & value )
overridevirtual
参数
container容器对象指针
value指向double类型变量的引用,用于存储属性值
返回
errc_t 错误码

实现了 ast::Property.

◆ getValueInt()

errc_t ast::PropertyTimePoint::getValueInt ( const void * container,
int & value )
overridevirtual

获取属性值(int类型)

参数
container容器对象指针
value指向int类型变量的引用,用于存储属性值
返回
errc_t 错误码

实现了 ast::Property.

◆ getValueString()

errc_t ast::PropertyTimePoint::getValueString ( const void * container,
std::string & value )
overridevirtual

获取属性值(String类型)

参数
container容器对象指针
value指向std::string类型变量的引用,用于存储属性值
返回
errc_t 错误码

实现了 ast::Property.

◆ setValue()

errc_t ast::PropertyTimePoint::setValue ( void * container,
const InputType * value )
inline

设置属性值(时间点类型)

参数
container容器指针
value属性值指针
返回
0 成功,其他值 失败

◆ setValueBool()

errc_t ast::PropertyTimePoint::setValueBool ( void * container,
bool value )
overridevirtual

设置属性值(bool类型)

参数
container容器对象指针
valuebool类型变量,用于设置属性值
返回
errc_t 错误码

实现了 ast::Property.

◆ setValueDouble()

errc_t ast::PropertyTimePoint::setValueDouble ( void * container,
double value )
overridevirtual

设置属性值(double类型)

参数
container容器对象指针
valuedouble类型变量,用于设置属性值
返回
errc_t 错误码

实现了 ast::Property.

◆ setValueInt()

errc_t ast::PropertyTimePoint::setValueInt ( void * container,
int value )
overridevirtual

设置属性值(int类型)

参数
container容器对象指针
valueint类型变量,用于设置属性值
返回
errc_t 错误码

实现了 ast::Property.

◆ setValueString()

errc_t ast::PropertyTimePoint::setValueString ( void * container,
StringView value )
overridevirtual

设置属性值(String类型)

参数
container容器对象指针
valueStringView类型变量,用于设置属性值
返回
errc_t 错误码

实现了 ast::Property.


该类的文档由以下文件生成: