#include "configvalues.h"
浏览源代码.
|
| Config |
| Public function to deal with the configuration file.
|
|
◆ Config_getBool
#define Config_getBool |
( |
|
name | ) |
(ConfigValues::instance().name()) |
◆ Config_getEnum
#define Config_getEnum |
( |
|
name | ) |
(ConfigValues::instance().name()) |
◆ Config_getEnumAsString
#define Config_getEnumAsString |
( |
|
name | ) |
(ConfigValues::instance().name##_str()) |
◆ Config_getInt
#define Config_getInt |
( |
|
name | ) |
(ConfigValues::instance().name()) |
◆ Config_getList
#define Config_getList |
( |
|
name | ) |
(ConfigValues::instance().name()) |
◆ Config_getString
#define Config_getString |
( |
|
name | ) |
(ConfigValues::instance().name()) |
some convenience macros for accessing the config options mainly done like this for backward compatibility
在文件 config.h 第 32 行定义.
◆ Config_updateBool
#define Config_updateBool |
( |
|
name, |
|
|
|
value |
|
) |
| (ConfigValues::instance().update_##name(value)); |
◆ Config_updateEnum
#define Config_updateEnum |
( |
|
name, |
|
|
|
value |
|
) |
| (ConfigValues::instance().update_##name(value)); |
◆ Config_updateInt
#define Config_updateInt |
( |
|
name, |
|
|
|
value |
|
) |
| (ConfigValues::instance().update_##name(value)); |
◆ Config_updateList
#define Config_updateList |
( |
|
name, |
|
|
|
... |
|
) |
| (ConfigValues::instance().update_##name(__VA_ARGS__)); |
◆ Config_updateString
#define Config_updateString |
( |
|
name, |
|
|
|
value |
|
) |
| (ConfigValues::instance().update_##name(value)); |