TRLC Platform Library
1.0.0
Header-only C++ library for compile-time platform detection and abstraction
|
Platform information structure. More...
#include <trlc/platform/platform.hpp>
Static Public Member Functions | |
static bool | isPosix () const |
Checks if the platform supports POSIX APIs. More... | |
static bool | isUnix () const |
Checks if the platform is Unix-like. More... | |
static bool | isWindows () const |
Checks if the platform is Windows-based. More... | |
Public Attributes | |
OperatingSystem | os |
Detected operating system. More... | |
EnvironmentType | environment |
Detected environment type. More... | |
const char * | os_name |
Human-readable OS name. More... | |
const char * | kernel_family |
Kernel family: "nt", "posix", "unix". More... | |
Platform information structure.
Contains comprehensive information about the detected platform, including operating system, environment, and kernel family.
Definition at line 55 of file platform.hpp.
|
inlinestatic |
Checks if the platform supports POSIX APIs.
Definition at line 65 of file platform.hpp.
|
inlinestatic |
Checks if the platform is Unix-like.
Definition at line 74 of file platform.hpp.
|
inlinestatic |
Checks if the platform is Windows-based.
Definition at line 86 of file platform.hpp.
EnvironmentType trlc::platform::PlatformInfo::environment |
Detected environment type.
Definition at line 57 of file platform.hpp.
const char* trlc::platform::PlatformInfo::kernel_family |
Kernel family: "nt", "posix", "unix".
Definition at line 59 of file platform.hpp.
OperatingSystem trlc::platform::PlatformInfo::os |
Detected operating system.
Definition at line 56 of file platform.hpp.
const char* trlc::platform::PlatformInfo::os_name |
Human-readable OS name.
Definition at line 58 of file platform.hpp.