mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-02-13 15:25:22 -05:00
43 lines
751 B
C++
43 lines
751 B
C++
#include "Configuration.h"
|
|
|
|
namespace CoolProp
|
|
{
|
|
//
|
|
//Configuration::Configuration()
|
|
//{
|
|
//}
|
|
//
|
|
//Configuration::~Configuration()
|
|
//{
|
|
//}
|
|
|
|
bool get_config_bool(configuration_keys key)
|
|
{
|
|
switch(key)
|
|
{
|
|
case NORMALIZE_GAS_CONSTANTS:
|
|
return true;
|
|
default:
|
|
throw ValueError(format("%d is invalid key to get_config_bool",key));
|
|
}
|
|
}
|
|
double get_config_double(configuration_keys key)
|
|
{
|
|
switch(key)
|
|
{
|
|
default:
|
|
throw ValueError(format("%d is invalid key to get_config_double",key));
|
|
}
|
|
}
|
|
std::string get_config_string(configuration_keys key)
|
|
{
|
|
switch(key)
|
|
{
|
|
default:
|
|
throw ValueError(format("%d is invalid key to get_config_string",key));
|
|
}
|
|
}
|
|
|
|
}
|
|
|