Loading [MathJax]/extensions/TeX/AMSsymbols.js
CoolProp
6.7.1dev
An open-source fluid property and humid air property database
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
p
r
s
t
u
v
w
x
Variables
Typedefs
Enumerations
Enumerator
b
d
f
g
h
i
n
p
q
r
s
t
v
x
y
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
Enumerations
Enumerator
c
e
i
m
n
o
p
r
s
t
v
z
Related Functions
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
p
q
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
p
q
r
s
t
u
v
Variables
Typedefs
b
c
i
m
t
u
v
Enumerations
Enumerator
c
m
t
Macros
_
a
c
d
e
f
i
l
m
n
p
r
t
u
x
z
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
include
CPfilepaths.h
Go to the documentation of this file.
1
#ifndef COOLPROP_FILE_PATH_H
2
#define COOLPROP_FILE_PATH_H
3
4
#include <string>
5
#include <vector>
6
8
std::string
get_separator
(
void
);
9
11
std::string
get_home_dir
(
void
);
12
14
bool
path_exists
(
const
std::string& path);
15
17
std::string
join_path
(
const
std::string& one,
const
std::string& two);
18
20
void
make_dirs
(std::string file_path);
21
23
#if defined(__ISWINDOWS__)
24
unsigned
long
long
CalculateDirSize
(
const
std::wstring& path, std::vector<std::wstring>* errVect = NULL);
25
#else
26
unsigned
long
long
CalculateDirSize
(
const
std::string& path);
27
#endif
28
29
// Get all the contents of a file and dump into a STL string
30
// Thanks to http://stackoverflow.com/questions/2602013/read-whole-ascii-file-into-c-stdstring
31
std::string
get_file_contents
(
const
char
* filename);
32
34
std::vector<char>
get_binary_file_contents
(
const
char
* filename);
35
36
#endif
Generated on Mon Mar 17 2025 04:25:23 for CoolProp by
1.9.1