SimGrid  3.13
Versatile Simulation of Distributed Systems
Configuration type declaration and memory management

Classes

struct  xbt_boolean_couple
 Boolean possible values. More...
 

Typedefs

typedef void(* xbt_cfg_cb_t) (const char *name)
 Callback types. More...
 

Enumerations

enum  e_xbt_cfgelm_type_t {
  xbt_cfgelm_int = 0, xbt_cfgelm_double, xbt_cfgelm_string, xbt_cfgelm_boolean,
  xbt_cfgelm_alias
}
 possible content of each configuration cell More...
 

Functions

xbt_cfg_t xbt_cfg_new (void)
 Constructor. More...
 
void xbt_cfg_free (xbt_cfg_t *cfg)
 Destructor. More...
 
void xbt_cfg_dump (const char *name, const char *indent, xbt_cfg_t cfg)
 Dump a config set for debuging purpose. More...
 

Detailed Description

Typedef Documentation

typedef void(* xbt_cfg_cb_t) (const char *name)

Callback types.

They get the name of the modified entry, and the position of the changed value

Enumeration Type Documentation

possible content of each configuration cell

Enumerator
xbt_cfgelm_int 

int

xbt_cfgelm_double 

double

xbt_cfgelm_string 

char*

xbt_cfgelm_boolean 

int

xbt_cfgelm_alias 

redirection from a deprecated name to a better one

Function Documentation

xbt_cfg_t xbt_cfg_new ( void  )

Constructor.

Initialise a config set

void xbt_cfg_free ( xbt_cfg_t cfg)

Destructor.

void xbt_cfg_dump ( const char *  name,
const char *  indent,
xbt_cfg_t  cfg 
)

Dump a config set for debuging purpose.

Parameters
nameThe name to give to this config set
indentwhat to write at the beginning of each line (right number of spaces)
cfgthe config set