Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
6f61086e220c927b12252c9fbfd11e44e624b24f
[simgrid.git] / src / include / simgrid / sg_config.h
1 /* Copyright (c) 2012-2014. The SimGrid Team.
2  * All rights reserved.                                                     */
3
4 /* This program is free software; you can redistribute it and/or modify it
5  * under the terms of the license (GNU LGPL) which comes with this package. */
6
7 #include "xbt/config.h"
8
9 /** Config Globals */
10 SG_BEGIN_DECL()
11
12 XBT_PUBLIC_DATA(xbt_cfg_t) simgrid_config;
13 XBT_PUBLIC_DATA(int) _sg_cfg_init_status;
14 XBT_PUBLIC_DATA(int) _sg_cfg_exit_asap;
15 XBT_PUBLIC(int) sg_cfg_is_default_value(const char* name);
16 XBT_PUBLIC(int) sg_cfg_get_int(const char* name);
17 XBT_PUBLIC(double) sg_cfg_get_double(const char* name);
18 XBT_PUBLIC(char*) sg_cfg_get_string(const char* name);
19 XBT_PUBLIC(int) sg_cfg_get_boolean(const char* name);
20 XBT_PUBLIC(xbt_dynar_t) sg_cfg_get_dynar(const char* name);
21
22 XBT_PUBLIC(void) sg_config_init(int *argc, char **argv);
23 XBT_PUBLIC(void) sg_config_finalize(void);
24
25 SG_END_DECL()