35 swap(_path, path._path);
45#if defined(FMT_VERSION)
47struct fmt::formatter<
CppCommon::Path> : formatter<std::string_view>
49 template <
typename FormatContext>
52 return formatter<string_view>::format(value.
string(), ctx);
Path & Assign(const Path &path)
Assign the given path to the current one.
friend void swap(Path &path1, Path &path2) noexcept
Path & Concat(const Path &path)
Concatenate the given path to the current one.
bool IsOther() const
Is the path points to special file (block, character, FIFO, socket)?
FileType type() const
Get the path file type.
std::string _path
Path string.
const std::string & string() const noexcept
Get the path value as UTF-8 string.
#define ENUM_FLAGS(type)
Register a new enum-based flags macro.
C++ Common project definitions.
@ NONE
None (file not found)
void swap(FileCache &cache1, FileCache &cache2) noexcept
FilePermissions
File permissions (Unix specific)
FileAttributes
File attributes (Windows specific)