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

Function CONVENTION get_global_param_string

src/CoolPropLib.cpp:357–368  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

355 return -1;
356}
357EXPORT_CODE long CONVENTION get_global_param_string(const char* param, char* Output, int n) {
358 try {
359 std::string s = CoolProp::get_global_param_string(param);
360 str2buf(s, Output, n);
361 return 1;
362 } catch (std::exception& e) {
363 CoolProp::set_error_string(e.what());
364 } catch (...) {
365 CoolProp::set_error_string("Undefined error");
366 }
367 return 0;
368}
369EXPORT_CODE long CONVENTION get_parameter_information_string(const char* param, char* Output, int n) {
370 try {
371 int key = CoolProp::get_parameter_index(param);

Callers

nothing calls this directly

Calls 4

get_global_param_stringFunction · 0.85
str2bufFunction · 0.85
set_error_stringFunction · 0.85
whatMethod · 0.80

Tested by

no test coverage detected