TSDuck v3.38-3696
MPEG Transport Stream Toolkit
|
A singleton holding information on the current operating system. More...
#include <tsSysInfo.h>
Public Member Functions | |
UString | cpuName () const |
Get the name of the CPU architecure. | |
bool | crcInstructions () const |
Check if the CPU supports accelerated instructions for CRC32 computation. | |
UString | hostName () const |
Get the name of the system host. | |
bool | isArm32 () const |
Check if the CPU is Arm-32. | |
bool | isArm64 () const |
Check if the CPU is Arm-64, also known as aarch64. | |
bool | isBSD () const |
Check if the running operating system is a BSD system (FreeBSD, NetBSD, OpenBSD, DragonFlyBSD). | |
bool | isDebian () const |
Check if the running operating system is Linux Debian. | |
bool | isDragonFlyBSD () const |
Check if the running operating system is DragonFlyBSD. | |
bool | isFedora () const |
Check if the running operating system is Fedora Linux. | |
bool | isFreeBSD () const |
Check if the running operating system is FreeBSD. | |
bool | isIntel32 () const |
Check if the CPU is Intel IA-32, also known as x86. | |
bool | isIntel64 () const |
Check if the CPU is the 64-bit extension of the IA-32 architecture, also known as AMD-64 or Intel x86-64. | |
bool | isLinux () const |
Check if the running operating system is Linux. | |
bool | isMacOS () const |
Check if the running operating system is macOS. | |
bool | isMIPS32 () const |
Check if the CPU is 32-bit MIPS. | |
bool | isMIPS64 () const |
Check if the CPU is 64-bit MIPS. | |
bool | isNetBSD () const |
Check if the running operating system is NetBSD. | |
bool | isOpenBSD () const |
Check if the running operating system is OpenBSD. | |
bool | isPPC32 () const |
Check if the CPU is 32-bit PowerPC. | |
bool | isPPC64 () const |
Check if the CPU is 64-bit PowerPC. | |
bool | isRaspbian () const |
Check if the running operating system is Linux Raspbian (Debian derivative on Raspberry Pi). | |
bool | isRedHat () const |
Check if the running operating system is RedHat Entreprise Linux or one of its clone such as AlmaLinux. | |
bool | isRISCV64 () const |
Check if the CPU is 64-bit RISC-V. | |
bool | isS390x () const |
Check if the CPU is 64-bit IBM s390x. | |
bool | isUbuntu () const |
Check if the running operating system is Linux Ubuntu. | |
bool | isWindows () const |
Check if the running operating system is Windows. | |
size_t | memoryPageSize () const |
Get system memory page size. | |
int | systemMajorVersion () const |
Get the operating system major version as an integer. | |
UString | systemName () const |
Get the operating system name. | |
UString | systemVersion () const |
Get the operating system version. | |
Static Public Member Functions | |
static SysInfo & | Instance () |
Get the instance of the singleton of this class. | |
A singleton holding information on the current operating system.
|
inlinestatic |
Get the instance of the singleton of this class.
|
inline |
Check if the running operating system is Linux.
|
inline |
Check if the running operating system is Fedora Linux.
|
inline |
Check if the running operating system is RedHat Entreprise Linux or one of its clone such as AlmaLinux.
|
inline |
Check if the running operating system is Linux Ubuntu.
|
inline |
Check if the running operating system is Linux Debian.
Note that Ubuntu is not considered a real Debian.
|
inline |
Check if the running operating system is Linux Raspbian (Debian derivative on Raspberry Pi).
|
inline |
Check if the running operating system is macOS.
|
inline |
Check if the running operating system is a BSD system (FreeBSD, NetBSD, OpenBSD, DragonFlyBSD).
|
inline |
Check if the running operating system is FreeBSD.
|
inline |
Check if the running operating system is NetBSD.
|
inline |
Check if the running operating system is OpenBSD.
|
inline |
Check if the running operating system is DragonFlyBSD.
|
inline |
Check if the running operating system is Windows.
|
inline |
Check if the CPU is Intel IA-32, also known as x86.
|
inline |
Check if the CPU is the 64-bit extension of the IA-32 architecture, also known as AMD-64 or Intel x86-64.
On Windows, this describes the actual CPU. The compiled code can be 32-bit, running on a 64-bit system.
|
inline |
Check if the CPU is Arm-32.
|
inline |
Check if the CPU is Arm-64, also known as aarch64.
|
inline |
Check if the CPU is 64-bit RISC-V.
|
inline |
Check if the CPU is 64-bit IBM s390x.
|
inline |
Check if the CPU is 32-bit PowerPC.
|
inline |
Check if the CPU is 64-bit PowerPC.
|
inline |
Check if the CPU is 32-bit MIPS.
|
inline |
Check if the CPU is 64-bit MIPS.
|
inline |
|
inline |
Get the operating system version.
|
inline |
Get the operating system major version as an integer.
The exact meaning of this number is system dependent.
|
inline |
Get the operating system name.
|
inline |
Get the name of the system host.
|
inline |
Get the name of the CPU architecure.
|
inline |
Get system memory page size.