CoolProp 6.8.1dev
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
8std::string get_separator(void);
9
11std::string get_home_dir(void);
12
14bool path_exists(const std::string& path);
15
17std::string join_path(const std::string& one, const std::string& two);
18
20void make_dirs(std::string file_path);
21
23#if defined(__ISWINDOWS__)
24unsigned long long CalculateDirSize(const std::wstring& path, std::vector<std::wstring>* errVect = NULL);
25#else
26unsigned 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
31std::string get_file_contents(const char* filename);
32
34std::vector<char> get_binary_file_contents(const char* filename);
35
36#endif