Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add C++ object to manage library #1

Open
jowr opened this issue Dec 18, 2014 · 1 comment
Open

Add C++ object to manage library #1

jowr opened this issue Dec 18, 2014 · 1 comment

Comments

@jowr
Copy link
Member

jowr commented Dec 18, 2014

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

@ianhbell
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants