#include <wx_idphoto.h>
|
virtual void | setValue (const std::string &key, int value)=0 |
|
virtual void | setValue (const std::string &key, float value)=0 |
|
virtual void | setValue (const std::string &key, bool value)=0 |
|
virtual void | setValue (const std::string &key, const std::string &data)=0 |
|
virtual void | setValue (const std::string &key, const std::vector< int > &arr)=0 |
|
virtual void | setValue (const std::string &key, const std::vector< float > &arr)=0 |
|
virtual int | getIntValue (const std::string &key, int defValue=0)=0 |
|
virtual float | getFloatValue (const std::string &key, float defValue=0)=0 |
|
virtual bool | getBoolValue (const std::string &key, bool defValue=false)=0 |
|
virtual const std::string & | getStringValue (const std::string &key)=0 |
|
virtual const std::vector< int > & | getIntArray (const std::string &key)=0 |
|
virtual const std::vector< float > & | getFloatArray (const std::string &key)=0 |
|
virtual bool | hasKey (const std::string &key)=0 |
|
WXIDPhotoSettings
class WXIDPhotoSettings
◆ create()
◆ create2()
创建一个WXIDPhotoSettings对象, 不需要时,需要主动delete该对象
◆ getBoolValue()
virtual bool wonxai::WXIDPhotoSettings::getBoolValue |
( |
const std::string & |
key, |
|
|
bool |
defValue = false |
|
) |
| |
|
pure virtual |
获取给定的key的布尔型值,
- Parameters
-
key | 键 |
defValue | 默认值,当key不存在时,返回该值 |
- Returns
- 值
- Exceptions
-
◆ getFloatArray()
virtual const std::vector< float > & wonxai::WXIDPhotoSettings::getFloatArray |
( |
const std::string & |
key | ) |
|
|
pure virtual |
获取给定的key的浮点型组值,
- Note
- 当key不存在时,返回空数组
- Parameters
-
- Returns
- 值
- Exceptions
-
◆ getFloatValue()
virtual float wonxai::WXIDPhotoSettings::getFloatValue |
( |
const std::string & |
key, |
|
|
float |
defValue = 0 |
|
) |
| |
|
pure virtual |
获取给定的key的浮点值,
- Parameters
-
key | 键 |
defValue | 默认值,当key不存在时,返回该值 |
- Returns
- 值
- Exceptions
-
◆ getIntArray()
virtual const std::vector< int > & wonxai::WXIDPhotoSettings::getIntArray |
( |
const std::string & |
key | ) |
|
|
pure virtual |
获取给定的key的整型数组值,
- Note
- 当key不存在时,返回空数组
- Parameters
-
- Returns
- 值
- Exceptions
-
◆ getIntValue()
virtual int wonxai::WXIDPhotoSettings::getIntValue |
( |
const std::string & |
key, |
|
|
int |
defValue = 0 |
|
) |
| |
|
pure virtual |
获取给定的key的整型值,
- Parameters
-
key | 键 |
defValue | 默认值,当key不存在时,返回该值 |
- Returns
- 值
- Exceptions
-
◆ getStringValue()
virtual const std::string & wonxai::WXIDPhotoSettings::getStringValue |
( |
const std::string & |
key | ) |
|
|
pure virtual |
获取给定的key的字符串值,
- Note
- 当key不存在时,返回空字符串
- Parameters
-
- Returns
- 值
- Exceptions
-
◆ hasKey()
virtual bool wonxai::WXIDPhotoSettings::hasKey |
( |
const std::string & |
key | ) |
|
|
pure virtual |
判断key是否存在
- Returns
- 存在返回true,不存在返回false
◆ setValue() [1/6]
virtual void wonxai::WXIDPhotoSettings::setValue |
( |
const std::string & |
key, |
|
|
bool |
value |
|
) |
| |
|
pure virtual |
◆ setValue() [2/6]
virtual void wonxai::WXIDPhotoSettings::setValue |
( |
const std::string & |
key, |
|
|
const std::string & |
data |
|
) |
| |
|
pure virtual |
◆ setValue() [3/6]
virtual void wonxai::WXIDPhotoSettings::setValue |
( |
const std::string & |
key, |
|
|
const std::vector< float > & |
arr |
|
) |
| |
|
pure virtual |
◆ setValue() [4/6]
virtual void wonxai::WXIDPhotoSettings::setValue |
( |
const std::string & |
key, |
|
|
const std::vector< int > & |
arr |
|
) |
| |
|
pure virtual |
◆ setValue() [5/6]
virtual void wonxai::WXIDPhotoSettings::setValue |
( |
const std::string & |
key, |
|
|
float |
value |
|
) |
| |
|
pure virtual |
◆ setValue() [6/6]
virtual void wonxai::WXIDPhotoSettings::setValue |
( |
const std::string & |
key, |
|
|
int |
value |
|
) |
| |
|
pure virtual |
The documentation for this class was generated from the following file: