Skip to content

File include/brisk/core/System.hpp


OSVersion class

OSVersion

Structure representing the operating system version.

major variable (OSVersion::major)

uint16_t major = 0

Major version of the operating system.

minor variable (OSVersion::minor)

uint16_t minor = 0

Minor version of the operating system.

build variable (OSVersion::build)

uint32_t build = 0

Build number of the operating system.

operator<=> function (OSVersion::operator<=>)

constexpr auto
operator<=>(const OSVersion &) const noexcept = default

Default comparison operator.

Reflection variable (OSVersion::Reflection)

constexpr static std::tuple Reflection

Reflection data for the fields of OSVersion.


OSUname class

OSUname

Structure representing OS uname information.

sysname variable (OSUname::sysname)

std::string sysname

System name.

release variable (OSUname::release)

std::string release

Release name.

version variable (OSUname::version)

std::string version

Version of the system.

machine variable (OSUname::machine)

std::string machine

Machine hardware name.

operator== function (OSUname::operator==)

constexpr bool
operator==(const OSUname &) const noexcept = default

Default comparison operator.

Reflection variable (OSUname::Reflection)

constexpr static std::tuple Reflection

Reflection data for the fields of OSUname.


osVersion function

OSVersion osVersion()

Retrieves the operating system version.
Returns The OSVersion structure containing the operating system version.


osName function

std::string osName()

Retrieves the operating system name.
Returns The name of the operating system as a string.


osUname function

OSUname osUname()

Retrieves the system uname information.
Returns The OSUname structure containing the uname information.


CpuInfo class

CpuInfo

Structure representing CPU information.

model variable (CpuInfo::model)

std::string model

CPU model name.

speed variable (CpuInfo::speed)

int speed

CPU speed in MHz.

Reflection variable (CpuInfo::Reflection)

constexpr static std::tuple Reflection

Reflection data for the fields of CpuInfo.


cpuInfo function

CpuInfo cpuInfo()

Retrieves the CPU information.
Returns The CpuInfo structure containing CPU model and speed.


isOSWindows function

constexpr bool isOSWindows()

Checks if the current OS is Windows.
Returns Always false for non-Windows systems.


constexpr bool isOSWindows(unsigned int major,
                           unsigned int minor,
                           unsigned int build)

Dummy function for non-Windows systems.
Param major Major version number (unused).
Param minor Minor version number (unused).
Param build Build number (unused).
Returns Always false for non-Windows systems.


Auto-generated from sources, Revision , https://github.com/brisklib/brisk/blob//include/brisk/