CoolProp 8.0.0
An open-source fluid property and humid air property database
Classes | Macros | Typedefs | Enumerations | Functions
tools.h File Reference
#include "CoolProp/detail/PlatformDetermination.h"
#include "CoolProp/Exceptions.h"
#include <string>
#include <vector>
#include <map>
#include "CoolProp/detail/strings.h"
#include "CoolProp/numerics/numerics.h"
#include "CoolProp/detail/filepaths.h"

Go to the source code of this file.

Classes

class  Dictionary
 

Macros

#define _CRT_SECURE_NO_WARNINGS
 
#define __has_feature(x)   0
 
#define COOLPROPDBL_MAPS_TO_DOUBLE
 
#define CATCH_ALL_ERRORS_RETURN_HUGE(x)
 

Typedefs

using CoolPropDbl = double
 

Enumerations

enum  miniz_mode { MINIZ_COMPRESS , MINIZ_DECOMPRESS }
 

Functions

template<typename M >
void freeClear (M &amap)
 Utility function to clear a std::map of pointers. More...
 
void miniz (const std::string &inFile, const std::string &outFile, miniz_mode mode)
 

Macro Definition Documentation

◆ __has_feature

#define __has_feature (   x)    0

Definition at line 19 of file tools.h.

◆ _CRT_SECURE_NO_WARNINGS

#define _CRT_SECURE_NO_WARNINGS

Definition at line 5 of file tools.h.

◆ CATCH_ALL_ERRORS_RETURN_HUGE

#define CATCH_ALL_ERRORS_RETURN_HUGE (   x)
Value:
try { \
x \
} catch (const std::exception& e) { \
return _HUGE; \
} catch (...) { \
return _HUGE; \
}

Definition at line 142 of file tools.h.

◆ COOLPROPDBL_MAPS_TO_DOUBLE

#define COOLPROPDBL_MAPS_TO_DOUBLE

Definition at line 45 of file tools.h.

Typedef Documentation

◆ CoolPropDbl

using CoolPropDbl = double

Definition at line 47 of file tools.h.

Enumeration Type Documentation

◆ miniz_mode

enum miniz_mode
Enumerator
MINIZ_COMPRESS 
MINIZ_DECOMPRESS 

Definition at line 151 of file tools.h.

Function Documentation

◆ freeClear()

template<typename M >
void freeClear ( M &  amap)

Utility function to clear a std::map of pointers.

Definition at line 135 of file tools.h.

◆ miniz()

void miniz ( const std::string &  inFile,
const std::string &  outFile,
miniz_mode  mode 
)