+
+/** @brief Retrieve one of the integer value of a variable */
+int
+xbt_cfg_get_int_at(xbt_cfg_t cfg, const char *name, int pos) {
+
+ xbt_cfgelm_t variable = xbt_cfgelm_get(cfg,name,xbt_cfgelm_int);
+ return xbt_dynar_get_as(variable->content, pos, int);
+}
+
+/** @brief Retrieve one of the double value of a variable */
+double
+xbt_cfg_get_double_at(xbt_cfg_t cfg, const char *name, int pos) {
+
+ xbt_cfgelm_t variable = xbt_cfgelm_get(cfg,name,xbt_cfgelm_double);
+ return xbt_dynar_get_as(variable->content, pos, double);
+}
+
+
+/** @brief Retrieve one of the string value of a variable */
+char*
+xbt_cfg_get_string_at(xbt_cfg_t cfg, const char *name, int pos) {
+
+ xbt_cfgelm_t variable = xbt_cfgelm_get(cfg,name,xbt_cfgelm_string);
+ return xbt_dynar_get_as(variable->content, pos, char*);
+}
+
+/** @brief Retrieve one of the host value of a variable */
+void
+xbt_cfg_get_host_at(xbt_cfg_t cfg, const char *name, int pos,
+ char **host, int *port) {
+
+ xbt_cfgelm_t variable = xbt_cfgelm_get(cfg,name,xbt_cfgelm_int);
+ xbt_host_t *val = xbt_dynar_get_ptr(variable->content, pos);
+
+ *port = val->port;
+ *host = val->name;
+}