DAWorkbench 0.0.1
DAWorkbench API
载入中...
搜索中...
未找到
DA::DAProperties类 参考

参考Java Properties 类封装的属性类,负责SA的属性传递 更多...

#include <DAProperties.h>

类 DA::DAProperties 继承关系图:
DA::DAAppConfig

Public 成员函数

QVariant getProperty (const QString &key) const
 获取属性
 
QVariant getProperty (const QString &key, const QVariant &defaultProperty) const
 获取属性
 
void setProperty (const QString &key, const QVariant &value)
 设置属性
 

详细描述

参考Java Properties 类封装的属性类,负责SA的属性传递

成员函数说明

◆ getProperty() [1/2]

QVariant DA::DAProperties::getProperty ( const QString &  key) const

获取属性

参数
key键值
返回
如果不存在键值返回QVariant(),如果存在返回对应属性

◆ getProperty() [2/2]

QVariant DA::DAProperties::getProperty ( const QString &  key,
const QVariant &  defaultProperty 
) const

获取属性

参数
key键值
defaultProperty默认值
返回
如果不存在键值返回defaultProperty,如果存在返回对应属性

◆ setProperty()

void DA::DAProperties::setProperty ( const QString &  key,
const QVariant &  value 
)

设置属性

参数
key键值
value

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