|
libcmutils 0.6.5
Multi-platform C99 utility library
|
Configuration management object. More...
Data Fields | |
| void(* | Save )(const CMUTIL_Config *conf, const char *path) |
| Save the configuration to a file. | |
| const char *(* | Get )(const CMUTIL_Config *conf, const char *key) |
| Get a configuration value as a string. | |
| void(* | Set )(CMUTIL_Config *conf, const char *key, const char *value) |
| Set a configuration value as a string. | |
| long(* | GetLong )(const CMUTIL_Config *conf, const char *key) |
| Get a configuration value as a long integer. | |
| void(* | SetLong )(CMUTIL_Config *conf, const char *key, long value) |
| Set a configuration value as a long integer. | |
| double(* | GetDouble )(const CMUTIL_Config *conf, const char *key) |
| Get a configuration value as a double. | |
| void(* | SetDouble )(CMUTIL_Config *conf, const char *key, double value) |
| Set a configuration value as a double. | |
| CMBool(* | GetBoolean )(const CMUTIL_Config *conf, const char *key) |
| Get a configuration value as a boolean. | |
| void(* | SetBoolean )(CMUTIL_Config *conf, const char *key, CMBool value) |
| Set a configuration value as a boolean. | |
| void(* | Destroy )(CMUTIL_Config *conf) |
| Destroy the configuration object and free its resources. | |
Configuration management object.
| void(* CMUTIL_Config::Save) (const CMUTIL_Config *conf, const char *path) |
Save the configuration to a file.
| conf | A pointer to the CMUTIL_Config object. |
| path | The file path where the configuration will be saved. |
| const char *(* CMUTIL_Config::Get) (const CMUTIL_Config *conf, const char *key) |
Get a configuration value as a string.
| conf | A pointer to the CMUTIL_Config object. |
| key | The configuration key. |
| void(* CMUTIL_Config::Set) (CMUTIL_Config *conf, const char *key, const char *value) |
Set a configuration value as a string.
| conf | A pointer to the CMUTIL_Config object. |
| key | The configuration key. |
| value | The configuration value to set. |
| long(* CMUTIL_Config::GetLong) (const CMUTIL_Config *conf, const char *key) |
Get a configuration value as a long integer.
| conf | A pointer to the CMUTIL_Config object. |
| key | The configuration key. |
| void(* CMUTIL_Config::SetLong) (CMUTIL_Config *conf, const char *key, long value) |
Set a configuration value as a long integer.
| conf | A pointer to the CMUTIL_Config object. |
| key | The configuration key. |
| value | The configuration value to set. |
| double(* CMUTIL_Config::GetDouble) (const CMUTIL_Config *conf, const char *key) |
Get a configuration value as a double.
| conf | A pointer to the CMUTIL_Config object. |
| key | The configuration key. |
| void(* CMUTIL_Config::SetDouble) (CMUTIL_Config *conf, const char *key, double value) |
Set a configuration value as a double.
| conf | A pointer to the CMUTIL_Config object. |
| key | The configuration key. |
| value | The configuration value to set. |
| CMBool(* CMUTIL_Config::GetBoolean) (const CMUTIL_Config *conf, const char *key) |
Get a configuration value as a boolean.
| conf | A pointer to the CMUTIL_Config object. |
| key | The configuration key. |
| void(* CMUTIL_Config::SetBoolean) (CMUTIL_Config *conf, const char *key, CMBool value) |
Set a configuration value as a boolean.
| conf | A pointer to the CMUTIL_Config object. |
| key | The configuration key. |
| value | The configuration value to set. |
| void(* CMUTIL_Config::Destroy) (CMUTIL_Config *conf) |
Destroy the configuration object and free its resources.
| conf | A pointer to the CMUTIL_Config object to be destroyed. |