capydi
Loading...
Searching...
No Matches
FileSystem.hpp
Go to the documentation of this file.
1#ifndef FILE_SYSTEM_HPP_
2#define FILE_SYSTEM_HPP_
3#include <filesystem>
4#include <string>
5
6namespace FileSystem
7{
8
9using PathType = std::filesystem::path;
10using PathStringType = typename PathType::string_type;
11using PathCharType = typename PathStringType::value_type;
12using FileContentType = std::string;
13using FileCharType = typename FileContentType::value_type;
14
15}
16
17#if defined(_WIN32) && !defined(UNICODE)
18 #define USE_WIDE_CHAR_PATH
19 #define TO_PATH_STR(str) L##str
20#else
21 #define TO_PATH_STR(str) str
22#endif
23
24#endif // !FILE_SYSTEM_HPP_
Definition FileSystem.hpp:7
typename PathType::string_type PathStringType
Definition FileSystem.hpp:10
typename PathStringType::value_type PathCharType
Definition FileSystem.hpp:11
std::filesystem::path PathType
Definition FileSystem.hpp:9
typename FileContentType::value_type FileCharType
Definition FileSystem.hpp:13
std::string FileContentType
Definition FileSystem.hpp:12