MCPcopy Create free account
hub / github.com/CoolProp/CoolProp / CONVENTION get_fluid_param_string_len

Function CONVENTION get_fluid_param_string_len

src/CoolPropLib.cpp:402–412  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

400 return 0;
401}
402EXPORT_CODE long CONVENTION get_fluid_param_string_len(const char* fluid, const char* param) {
403 try {
404 std::string s = CoolProp::get_fluid_param_string(std::string(fluid), std::string(param));
405 return static_cast<long>(s.size());
406 } catch (std::exception& e) {
407 CoolProp::set_error_string(e.what());
408 } catch (...) {
409 CoolProp::set_error_string("Undefined error");
410 }
411 return -1;
412}
413EXPORT_CODE void CONVENTION set_config_string(const char* key, const char* val) {
414 try {
415 CoolProp::set_config_string(CoolProp::config_string_to_key(std::string(key)), std::string(val));

Callers

nothing calls this directly

Calls 5

get_fluid_param_stringFunction · 0.85
set_error_stringFunction · 0.85
whatMethod · 0.80
stringClass · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected