This is the only interface you should use unless you want to let your own code become configurable with this.
If the variable accept at most one value, those functions replace the current value with the provided one. If max>1, the provided value is appended to the list.
string values are strdup'ed before use, so you can (and should) free your copy
|
typedef simgrid::config::Config * | xbt_cfg_t |
| Configuration set's data type is opaque. More...
|
|
◆ xbt_cfg_t
Configuration set's data type is opaque.
◆ xbt_cfg_set_parse()
void xbt_cfg_set_parse |
( |
const char * |
options | ) |
|
◆ xbt_cfg_set_int()
void xbt_cfg_set_int |
( |
const char * |
name, |
|
|
int |
val |
|
) |
| |
◆ xbt_cfg_set_double()
void xbt_cfg_set_double |
( |
const char * |
name, |
|
|
double |
val |
|
) |
| |
◆ xbt_cfg_set_boolean()
void xbt_cfg_set_boolean |
( |
const char * |
name, |
|
|
const char * |
val |
|
) |
| |
◆ xbt_cfg_set_string()
void xbt_cfg_set_string |
( |
const char * |
name, |
|
|
const char * |
val |
|
) |
| |
◆ xbt_cfg_set_as_string()
void xbt_cfg_set_as_string |
( |
const char * |
name, |
|
|
const char * |
val |
|
) |
| |
◆ xbt_cfg_setdefault_int()
void xbt_cfg_setdefault_int |
( |
const char * |
name, |
|
|
int |
val |
|
) |
| |
◆ xbt_cfg_setdefault_double()
void xbt_cfg_setdefault_double |
( |
const char * |
name, |
|
|
double |
val |
|
) |
| |
◆ xbt_cfg_setdefault_boolean()
void xbt_cfg_setdefault_boolean |
( |
const char * |
name, |
|
|
const char * |
val |
|
) |
| |
◆ xbt_cfg_setdefault_string()
void xbt_cfg_setdefault_string |
( |
const char * |
name, |
|
|
const char * |
val |
|
) |
| |
◆ xbt_cfg_is_default_value()
int xbt_cfg_is_default_value |
( |
const char * |
name | ) |
|
Return if configuration is set by default.