xentara-utils v1.2.1
Xentara utilities library
Loading...
Searching...
No Matches
xentara::utils::system::SystemInfo Class Reference

This class can be used to access some real-time relevant properties of the system. More...

#include <system/SystemInfo.hpp>

Static Public Member Functions

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.
 

Detailed Description

This class can be used to access some real-time relevant properties of the system.

Member Function Documentation

◆ 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