SimGrid  3.18
Versatile Simulation of Distributed Systems
config.h File Reference
#include <stdarg.h>
#include <xbt/base.h>

Typedefs

typedef voidxbt_cfg_t
 Configuration set's data type is opaque. More...
 
typedef void(* xbt_cfg_cb_t) (const char *name)
 Callback types. More...
 

Functions

void xbt_cfg_set_parse (const char *options)
 Add values parsed from a string into a config set. More...
 
void xbt_cfg_set_int (const char *name, int val)
 Set an integer value to name within cfg. More...
 
void xbt_cfg_set_double (const char *name, double val)
 Set or add a double value to name within cfg. More...
 
void xbt_cfg_set_boolean (const char *name, const char *val)
 Set or add a boolean value to name within cfg. More...
 
void xbt_cfg_set_string (const char *name, const char *val)
 Set or add a string value to name within cfg. More...
 
void xbt_cfg_set_as_string (const char *name, const char *val)
 Set the value of a variable, using the string representation of that value. More...
 
void xbt_cfg_setdefault_int (const char *name, int val)
 Set an integer value to name within cfg if it wasn't changed yet. More...
 
void xbt_cfg_setdefault_double (const char *name, double val)
 Set an integer value to name within cfg if it wasn't changed yet. More...
 
void xbt_cfg_setdefault_string (const char *name, const char *val)
 Set a string value to name within cfg if it wasn't changed yet. More...
 
void xbt_cfg_setdefault_boolean (const char *name, const char *val)
 Set an boolean value to name within cfg if it wasn't changed yet. More...
 
int xbt_cfg_is_default_value (const char *name)
 Return if configuration is set by default. More...
 
xbt_cfg_t xbt_cfg_new ()
 
void xbt_cfg_free (xbt_cfg_t *cfg)
 
void xbt_cfg_dump (const char *name, const char *indent, xbt_cfg_t cfg)
 
void xbt_cfg_register_double (const char *name, double default_val, xbt_cfg_cb_t cb_set, const char *desc)
 
void xbt_cfg_register_int (const char *name, int default_val, xbt_cfg_cb_t cb_set, const char *desc)
 
void xbt_cfg_register_string (const char *name, const char *default_val, xbt_cfg_cb_t cb_set, const char *desc)
 
void xbt_cfg_register_boolean (const char *name, const char *default_val, xbt_cfg_cb_t cb_set, const char *desc)
 
void xbt_cfg_register_alias (const char *newname, const char *oldname)
 
void xbt_cfg_aliases ()
 
void xbt_cfg_help ()
 
int xbt_cfg_get_int (const char *name)
 Retrieve an integer value of a variable (get a warning if not uniq) More...
 
double xbt_cfg_get_double (const char *name)
 Retrieve a double value of a variable (get a warning if not uniq) More...
 
int xbt_cfg_get_boolean (const char *name)
 Retrieve a boolean value of a variable (get a warning if not uniq) More...