X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b0b20786751d59b46c18bc23416b45e3fa0167ba..807bd388d45f157e3d45cc3cabda56dccff633d6:/include/xbt/config.hpp diff --git a/include/xbt/config.hpp b/include/xbt/config.hpp index eb0e3d6d9d..704c60fbe4 100644 --- a/include/xbt/config.hpp +++ b/include/xbt/config.hpp @@ -43,6 +43,15 @@ inline std::string to_string(std::string&& value) return std::move(value); } +// Set config + +template XBT_PUBLIC void set_value(const char* name, T value); + +extern template XBT_PUBLIC void set_value(const char* name, int value); +extern template XBT_PUBLIC void set_value(const char* name, double value); +extern template XBT_PUBLIC void set_value(const char* name, bool value); +extern template XBT_PUBLIC void set_value(const char* name, std::string value); + // Get config template XBT_PUBLIC T const& get_value(const char* name);