mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-04-23 03:00:17 -04:00
Expose the configuration functions through SWIG - closes #326
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
This commit is contained in:
@@ -36,6 +36,16 @@ configuration_keys config_string_to_key(std::string &s)
|
||||
|
||||
static Configuration config;
|
||||
|
||||
void set_config_bool(configuration_keys key, bool val){
|
||||
config.get_item(key).set_bool(val);
|
||||
}
|
||||
void set_config_double(configuration_keys key, double val){
|
||||
config.get_item(key).set_double(val);
|
||||
}
|
||||
void set_config_string(configuration_keys key, std::string val){
|
||||
config.get_item(key).set_string(val);
|
||||
}
|
||||
|
||||
bool get_config_bool(configuration_keys key){
|
||||
return static_cast<bool>(config.get_item(key));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user