CoolProp  6.6.1dev
An open-source fluid property and humid air property database
Public Member Functions | List of all members
CoolProp::ConfigurationItem Class Reference

Detailed Description

A class that contains one entry in configuration Can be cast to yield the output value

Definition at line 113 of file Configuration.h.

#include <Configuration.h>

Public Member Functions

 operator bool () const
 Cast to boolean. More...
 
 operator double () const
 Cast to double. More...
 
 operator std::string () const
 Cast to string. More...
 
 operator int () const
 Cast to integer. More...
 
 ConfigurationItem (configuration_keys key, bool val)
 
 ConfigurationItem (configuration_keys key, int val)
 
 ConfigurationItem (configuration_keys key, double val)
 
 ConfigurationItem (configuration_keys key, const char *val)
 
 ConfigurationItem (configuration_keys key, const std::string &val)
 
void set_bool (bool val)
 
void set_integer (int val)
 
void set_double (double val)
 
void set_string (const std::string &val)
 
configuration_keys get_key (void) const
 
void add_to_json (rapidjson::Value &val, rapidjson::Document &d) const
 Cast to rapidjson::Value. More...
 
void set_from_json (rapidjson::Value &val)
 

Constructor & Destructor Documentation

◆ ConfigurationItem() [1/5]

CoolProp::ConfigurationItem::ConfigurationItem ( configuration_keys  key,
bool  val 
)
inline

Definition at line 137 of file Configuration.h.

◆ ConfigurationItem() [2/5]

CoolProp::ConfigurationItem::ConfigurationItem ( configuration_keys  key,
int  val 
)
inline

Definition at line 143 of file Configuration.h.

◆ ConfigurationItem() [3/5]

CoolProp::ConfigurationItem::ConfigurationItem ( configuration_keys  key,
double  val 
)
inline

Definition at line 149 of file Configuration.h.

◆ ConfigurationItem() [4/5]

CoolProp::ConfigurationItem::ConfigurationItem ( configuration_keys  key,
const char *  val 
)
inline

Definition at line 155 of file Configuration.h.

◆ ConfigurationItem() [5/5]

CoolProp::ConfigurationItem::ConfigurationItem ( configuration_keys  key,
const std::string &  val 
)
inline

Definition at line 161 of file Configuration.h.

Member Function Documentation

◆ add_to_json()

void CoolProp::ConfigurationItem::add_to_json ( rapidjson::Value &  val,
rapidjson::Document &  d 
) const
inline

Cast to rapidjson::Value.

Definition at line 188 of file Configuration.h.

◆ get_key()

configuration_keys CoolProp::ConfigurationItem::get_key ( void  ) const
inline

Definition at line 183 of file Configuration.h.

◆ operator bool()

CoolProp::ConfigurationItem::operator bool ( ) const
inline

Cast to boolean.

Definition at line 117 of file Configuration.h.

◆ operator double()

CoolProp::ConfigurationItem::operator double ( ) const
inline

Cast to double.

Definition at line 122 of file Configuration.h.

◆ operator int()

CoolProp::ConfigurationItem::operator int ( ) const
inline

Cast to integer.

Definition at line 132 of file Configuration.h.

◆ operator std::string()

CoolProp::ConfigurationItem::operator std::string ( ) const
inline

Cast to string.

Definition at line 127 of file Configuration.h.

◆ set_bool()

void CoolProp::ConfigurationItem::set_bool ( bool  val)
inline

Definition at line 166 of file Configuration.h.

◆ set_double()

void CoolProp::ConfigurationItem::set_double ( double  val)
inline

Definition at line 174 of file Configuration.h.

◆ set_from_json()

void CoolProp::ConfigurationItem::set_from_json ( rapidjson::Value &  val)
inline

Definition at line 217 of file Configuration.h.

◆ set_integer()

void CoolProp::ConfigurationItem::set_integer ( int  val)
inline

Definition at line 170 of file Configuration.h.

◆ set_string()

void CoolProp::ConfigurationItem::set_string ( const std::string &  val)
inline

Definition at line 178 of file Configuration.h.

Member Data Documentation

◆ v_bool

bool CoolProp::ConfigurationItem::v_bool

Definition at line 265 of file Configuration.h.

◆ v_double

double CoolProp::ConfigurationItem::v_double

Definition at line 264 of file Configuration.h.

◆ v_integer

int CoolProp::ConfigurationItem::v_integer

Definition at line 266 of file Configuration.h.


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