CoolProp
8.0.0
An open-source fluid property and humid air property database
include
CoolProp
detail
filepaths.h
Go to the documentation of this file.
1
#ifndef COOLPROP_FILE_PATH_H
2
#define COOLPROP_FILE_PATH_H
3
4
#include <cstddef>
5
#include <string>
6
#include <vector>
7
9
std::string
get_separator
();
10
12
std::string
get_home_dir
();
13
15
bool
path_exists
(
const
std::string& path);
16
18
std::string
join_path
(
const
std::string& one,
const
std::string& two);
19
21
void
make_dirs
(
const
std::string& file_path);
22
26
unsigned
long
long
CalculateDirSize
(
const
std::string& path);
27
28
// Get all the contents of a file and dump into a STL string
29
// Thanks to http://stackoverflow.com/questions/2602013/read-whole-ascii-file-into-c-stdstring
30
std::string
get_file_contents
(
const
char
* filename);
31
33
std::vector<char>
get_binary_file_contents
(
const
char
* filename);
34
35
// write_bytes_atomic moved to CoolProp/detail/atomic_write.h so this header
36
// (pulled into the public surface via detail/tools.h) no longer needs
37
// <filesystem>. Include that header where you call it.
38
39
#endif
Generated by
1.9.4