uvw 3.1.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
uvw::uts_name Struct Reference

Utility class. More...

#include <util.h>

Public Member Functions

std::string sysname () const noexcept
 Gets the operating system name (like "Linux").
 
std::string release () const noexcept
 Gets the operating system release (like "2.6.28").
 
std::string version () const noexcept
 Gets the operating system version.
 
std::string machine () const noexcept
 Gets the hardware identifier.
 

Detailed Description

Utility class.

This class can be used to get name and information about the current kernel. The populated data includes the operating system name, release, version, and machine.

See also
utilities::uname

Definition at line 166 of file util.h.

Member Function Documentation

◆ machine()

std::string uvw::uts_name::machine ( ) const
noexcept

Gets the hardware identifier.

Returns
The hardware identifier.

◆ release()

std::string uvw::uts_name::release ( ) const
noexcept

Gets the operating system release (like "2.6.28").

Returns
The operating system release.

◆ sysname()

std::string uvw::uts_name::sysname ( ) const
noexcept

Gets the operating system name (like "Linux").

Returns
The operating system name.

◆ version()

std::string uvw::uts_name::version ( ) const
noexcept

Gets the operating system version.

Returns
The operating system version

The documentation for this struct was generated from the following file: