CoolProp 8.0.0
An open-source fluid property and humid air property database
Public Member Functions | List of all members
CoolProp::AbstractStateGenerator Class Referenceabstract

Detailed Description

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>

Inheritance diagram for CoolProp::AbstractStateGenerator:
CoolProp::HEOSGenerator CoolProp::IF97BackendGenerator CoolProp::IncompressibleBackendGenerator CoolProp::PCSAFTGenerator CoolProp::PRGenerator CoolProp::REFPROPGenerator CoolProp::SRKGenerator CoolProp::VTPRGenerator

Public Member Functions

virtual AbstractStateget_AbstractState (const std::vector< std::string > &fluid_names)=0
 
virtual AbstractStateget_AbstractState (const std::vector< std::string > &fluid_names, const std::string &options_json)
 
virtual ~AbstractStateGenerator ()=default
 

Constructor & Destructor Documentation

◆ ~AbstractStateGenerator()

virtual CoolProp::AbstractStateGenerator::~AbstractStateGenerator ( )
virtualdefault

Member Function Documentation

◆ get_AbstractState() [1/2]

virtual AbstractState * CoolProp::AbstractStateGenerator::get_AbstractState ( const std::vector< std::string > &  fluid_names)
pure virtual

◆ get_AbstractState() [2/2]

AbstractState * CoolProp::AbstractStateGenerator::get_AbstractState ( const std::vector< std::string > &  fluid_names,
const std::string &  options_json 
)
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.


The documentation for this class was generated from the following files: