This class can be used to access some real-time relevant properties of the system.
More...
#include <xentara/utils/system/SystemInfo.hpp>
|
static auto | isWsl () -> bool |
| Determines whether this is a WSL instance.
|
|
static auto | wslVersion () -> int |
| Determines the WSL version number.
|
|
static auto | isDocker () -> bool |
| Determines whether we are running in a docker container.
|
|
static auto | isRealTimeOs () -> bool |
| Determines whether this is a WSL instance.
|
|
This class can be used to access some real-time relevant properties of the system.
◆ isDocker()
auto xentara::utils::system::SystemInfo::isDocker |
( |
| ) |
-> bool |
|
static |
Determines whether we are running in a docker container.
◆ isRealTimeOs()
auto xentara::utils::system::SystemInfo::isRealTimeOs |
( |
| ) |
-> bool |
|
static |
Determines whether this is a WSL instance.
◆ isWsl()
auto xentara::utils::system::SystemInfo::isWsl |
( |
| ) |
-> bool |
|
static |
Determines whether this is a WSL instance.
◆ wslVersion()
auto xentara::utils::system::SystemInfo::wslVersion |
( |
| ) |
-> int |
|
static |
Determines the WSL version number.
- Returns
- Returns 1 for WSL 1, 2 for WSL 2, or 0 if this is not a WSL instance