CoolProp  6.6.0
An open-source fluid property and humid air property database
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