Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Deprecate xbt_cfg_get_<type>().
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 19 Apr 2018 11:11:11 +0000 (13:11 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 19 Apr 2018 14:06:43 +0000 (16:06 +0200)
include/xbt/config.h
include/xbt/config.hpp

index a555624..6c4219a 100644 (file)
@@ -140,9 +140,12 @@ XBT_PUBLIC void xbt_cfg_help();
  *  @{
  */
 
  *  @{
  */
 
-XBT_PUBLIC int xbt_cfg_get_int(const char* name);
-XBT_PUBLIC double xbt_cfg_get_double(const char* name);
-XBT_PUBLIC int xbt_cfg_get_boolean(const char* name);
+XBT_ATTRIB_DEPRECATED_v323("Please use simgrid::config::get_config<int>") XBT_PUBLIC
+    int xbt_cfg_get_int(const char* name);
+XBT_ATTRIB_DEPRECATED_v323("Please use simgrid::config::get_config<double>") XBT_PUBLIC
+    double xbt_cfg_get_double(const char* name);
+XBT_ATTRIB_DEPRECATED_v323("Please use simgrid::config::get_config<bool>") XBT_PUBLIC
+    int xbt_cfg_get_boolean(const char* name);
 
 /** @} */
 
 
 /** @} */
 
index 92ecb49..4521614 100644 (file)
@@ -258,6 +258,7 @@ public:
 
 }
 }
 
 }
 }
-XBT_PUBLIC std::string xbt_cfg_get_string(const char* name);
+XBT_ATTRIB_DEPRECATED_v323("Please use simgrid::config::get_config<std::string>") XBT_PUBLIC std::string
+    xbt_cfg_get_string(const char* name);
 
 #endif
 
 #endif