|
CoolProp 8.0.0
An open-source fluid property and humid air property database
|
An abstract AbstractState generator class
This class should be derived and statically initialized in a C++ file. In the initializer, the register_backend function should be called. This will register the backend family, and when this generator is looked up in the map, the get_AbstractState function will be used to return an initialized instance
Definition at line 1689 of file AbstractState.h.
#include <AbstractState.h>
Public Member Functions | |
| virtual AbstractState * | get_AbstractState (const std::vector< std::string > &fluid_names)=0 |
| virtual AbstractState * | get_AbstractState (const std::vector< std::string > &fluid_names, const std::string &options_json) |
| virtual | ~AbstractStateGenerator ()=default |
|
virtualdefault |
|
pure virtual |
|
virtual |
Options-aware factory entry-point. Default forwards to the no-options overload when options_json is empty / "{}"; throws NotImplementedError otherwise. Backends that accept options override this to parse + validate the JSON against their schema before constructing. options_json arrives raw from the ?<...> suffix on the factory string (see parse_factory_options); backends are responsible for their own JSON parse and schema validation.
Definition at line 69 of file AbstractState.cpp.