REFPROP-headers icon indicating copy to clipboard operation
REFPROP-headers copied to clipboard

Add C++ object to manage library

Open jowr opened this issue 11 years ago • 1 comments

Add a new C++ object that manages access to the REFPROP library. This should cover some of the code from https://github.com/CoolProp/CoolProp/blob/master/src/Backends/REFPROP/REFPROPMixtureBackend.cpp and is closely related to CoolProp/CoolProp/issues/354 and jowr/librefprop.so#21

jowr avatar Dec 18 '14 10:12 jowr

I came up with an even better solution - load a separate copy of REFPROP into memory, in a class that is managed in C++, with all functions being exposed through the magic of variadic function argument forwarding: https://github.com/ianhbell/REFPROP-tests/blob/master/include/REFPROPtests/baseclasses.h C++11 only, but very slick.

ianhbell avatar Jan 16 '18 17:01 ianhbell