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

Function CONVENTION get_fluid_param_string

src/CoolPropLib.cpp:390–401  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

388 return 0;
389}
390EXPORT_CODE long CONVENTION get_fluid_param_string(const char* fluid, const char* param, char* Output, int n) {
391 try {
392 std::string s = CoolProp::get_fluid_param_string(std::string(fluid), std::string(param));
393 str2buf(s, Output, n);
394 return 1;
395 } catch (std::exception& e) {
396 CoolProp::set_error_string(e.what());
397 } catch (...) {
398 CoolProp::set_error_string("Undefined error");
399 }
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));

Callers

nothing calls this directly

Calls 5

get_fluid_param_stringFunction · 0.85
str2bufFunction · 0.85
set_error_stringFunction · 0.85
whatMethod · 0.80
stringClass · 0.50

Tested by

no test coverage detected