CoolProp 8.0.0
An open-source fluid property and humid air property database
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
9std::string get_separator();
10
12std::string get_home_dir();
13
15bool path_exists(const std::string& path);
16
18std::string join_path(const std::string& one, const std::string& two);
19
21void make_dirs(const std::string& file_path);
22
26unsigned 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
30std::string get_file_contents(const char* filename);
31
33std::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