SimGrid
Typedefs | Enumerations | Functions
Configuration type declaration and memory management
Configuration support

Typedefs

typedef void(* xbt_cfg_cb_t )(const char *, int)
 Callback types. They get the name of the modified entry, and the position of the changed value.

Enumerations

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

Functions

xbt_cfg_t xbt_cfg_new (void)
 Constructor.
void xbt_cfg_cpy (xbt_cfg_t tocopy, xbt_cfg_t *whereto)
 Copy an existing configuration 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.

Enumeration Type Documentation

possible content of each configuration cell

Enumerator:
xbt_cfgelm_int 

int

xbt_cfgelm_double 

double

xbt_cfgelm_string 

char*

xbt_cfgelm_peer 

both a char* (representing the peername) and an integer (representing the port)


Function Documentation

xbt_cfg_t xbt_cfg_new ( void  )

Constructor.

Initialise an config set

void xbt_cfg_cpy ( xbt_cfg_t  tocopy,
xbt_cfg_t whereto 
)

Copy an existing configuration set.

  • whereto the config set to be created
  • tocopy the source data

This only copy the registrations, not the actual content

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

Dump a config set for debuging purpose.

  • name The name to give to this config set
  • indent what to write at the begining of each line (right number of spaces)
  • cfg the config set


Back to the main Simgrid Documentation page The version of Simgrid documented here is v3.6.1.
Documentation of other versions can be found in their respective archive files (directory doc/html).
Generated for SimGridAPI by doxygen