43#include <StormByte/error.hxx>
44#include <StormByte/safe/string.hxx>
48#include <system_error>
116 static constexpr const char*
Name =
"StormByte.System.Directory";
128 return "Directory permission denied";
130 return "Directory not found";
132 return "Directory resolution failed";
134 return "Unknown Directory error";
161 struct is_error_code_enum<
StormByte::System::Directory::Error>: true_type {};
Directory locations of this process or user.
Definition directory.hxx:61
bool Home(StormByte::Safe::String &path)
Current user home directory.
bool Temporary(StormByte::Safe::String &path)
Directory used for temporary files.
bool CurrentExecutable(StormByte::Safe::String &path)
Directory that contains the running executable.
Error
Directory enumerators.
Definition directory.hxx:68
@ NotFound
The directory or a required environment value is missing.
Definition directory.hxx:71
@ Success
No error.
Definition directory.hxx:69
@ Failed
The platform call failed.
Definition directory.hxx:72
@ Permission
The process may not read this directory.
Definition directory.hxx:70
bool Current(StormByte::Safe::String &path)
Current working directory.
StormByte::Error::Fault LastError() noexcept
Last Directory error on this thread.
System module of the StormByte suite.
Definition device.hxx:59
STORMBYTE_FORCE_INLINE std::error_code make_error_code(Device::Error e) noexcept
Builds an std::error_code from Device::Error.
Definition device.hxx:341
const StormByte::Error::Category< Directory::Error > & directory_category() noexcept
Category singleton for Directory::Error.
static STORMBYTE_FORCE_INLINE std::string Message(StormByte::System::Directory::Error e)
Text for one Directory enumerator.
Definition directory.hxx:123
static constexpr const char * Name
Stable category tag.
Definition directory.hxx:116
#define STORMBYTE_SYSTEM_PUBLIC
Definition visibility.h:53