CoolProp  6.6.0
An open-source fluid property and humid air property database
Namespaces | Macros | Functions
Configuration.cpp File Reference
#include "Configuration.h"
#include "src/Backends/REFPROP/REFPROPMixtureBackend.h"

Go to the source code of this file.

Namespaces

 CoolProp
 Code for all the binary pairs in the mixture.
 

Macros

#define X(Enum, String, Default, Desc)
 
#define X(Enum, String, Default, Desc)
 
#define X(Enum, String, Default, Desc)
 
#define X(Enum, String, Default, Desc)
 

Functions

std::string CoolProp::config_key_to_string (configuration_keys keys)
 Convert the configuration key to a string in a 1-1 representation. More...
 
std::string CoolProp::config_key_description (configuration_keys keys)
 Return a string description of the configuration key. More...
 
std::string CoolProp::config_key_description (const std::string &key)
 Return a string description of the configuration key (with the key passed as a string) More...
 
configuration_keys CoolProp::config_string_to_key (const std::string &s)
 Go from string to enum key. More...
 
void CoolProp::set_config_bool (configuration_keys key, bool val)
 Set the value of a boolean configuration value. More...
 
void CoolProp::set_config_int (configuration_keys key, int val)
 Set the value of an integer configuration value. More...
 
void CoolProp::set_config_double (configuration_keys key, double val)
 Set the value of a double configuration value. More...
 
void CoolProp::set_config_string (configuration_keys key, const std::string &val)
 Set the value of a string configuration value. More...
 
bool CoolProp::get_config_bool (configuration_keys key)
 Return the value of a boolean key from the configuration. More...
 
int CoolProp::get_config_int (configuration_keys key)
 Return the value of an integer key from the configuration. More...
 
double CoolProp::get_config_double (configuration_keys key)
 Return the value of a double configuration key. More...
 
std::string CoolProp::get_config_string (configuration_keys key)
 Return the value of a string configuration key. More...
 
void CoolProp::get_config_as_json (rapidjson::Document &doc)
 
std::string CoolProp::get_config_as_json_string ()
 Get all the values in the configuration as a json-formatted string. More...
 
void CoolProp::set_config_as_json (rapidjson::Value &val)
 
void CoolProp::set_config_as_json_string (const std::string &s)
 Set the entire configuration based on a json-formatted string. More...
 

Macro Definition Documentation

◆ X [1/4]

#define X (   Enum,
  String,
  Default,
  Desc 
)
Value:
case Enum: \
return String; \
break;

◆ X [2/4]

#define X (   Enum,
  String,
  Default,
  Desc 
)
Value:
case Enum: \
return Desc; \
break;

◆ X [3/4]

#define X (   Enum,
  String,
  Default,
  Desc 
)
Value:
if (key == String) { \
return Desc; \
}

◆ X [4/4]

#define X (   Enum,
  String,
  Default,
  Desc 
)
Value:
if (s == String) { \
return Enum; \
}