This is the reference documentation of module ALib System, which exposes it's entities in this namespace.
Type Index: | |
| class | Console |
| This class provides system-dependent features in respect the console attached to a process. More... | |
| struct | EnvironmentVariables |
| class | Path |
| class | ProcessInfo |
| This class represents process information. More... | |
| class | TShellCommand |
Type Definition Index: | |
| using | CPathString = strings::TCString<PathCharType> |
| The string-type used with this ALib Module. | |
| using | PathCharType = std::filesystem::path::value_type |
| using | PathString = strings::TString<PathCharType> |
| The string-type used with this ALib Module. | |
| using | PathStringMA = strings::TAString<PathCharType, PoolAllocator > |
| A mono-allocated string representing a path. | |
| using | PathStringPA = strings::TAString<PathCharType, PoolAllocator > |
| A pool-allocated string representing a path. | |
| using | PathSubstring = strings::TSubstring<PathCharType> |
| The string-type used with this ALib Module. | |
Enumeration Index: | |
| enum class | SystemFolders { Root , Current , Home , HomeConfig , Module , Temp , VarTemp } |
Variable Index: | |
| constexpr PathCharType | DIRECTORY_SEPARATOR = '/' |
| The standard path separator character. Defaults to '\' on Windows OS, '/' else. | |
| constexpr PathString | EMPTY_PATH |
| An empty path string. | |
| constexpr PathString | NULL_PATH |
| A nulled path string. | |
| using alib::system::PathCharType = std::filesystem::path::value_type |
|
strong |
Enumerates special system folders like "home", "temp", "config", etc. This enumeration is primarily used with class Path and this documentation refers to this type.
| Enumerator | |
|---|---|
| Root | The root directory . |
| Current | The current directory of the process. |
| Home | The user's home directory. |
| HomeConfig | The user's configuration directory. This is evaluated as follows:
|
| Module | The directory of the executable of the process. |
| Temp | A directory to be used for creation of temporary files.
If the directory does not exist, then (on all OS), a new directory named
To overrule this behavior, public static variable static PathString tempDirEvaluatedOnce may be set arbitrarily before using this enum value. |
| VarTemp | A directory to be used for creation of temporary files that survives reboots of the host machine.
If the directory does not exist, then (on all OS), a new directory named
To overrule this behavior, public static variable static PathString varTempDirEvaluatedOnce may be set arbitrarily before using this enum value. |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |