TSDuck v3.40-3963
MPEG Transport Stream Toolkit
|
A singleton holding information on the current operating system. More...
#include <tsSysInfo.h>
Public Types | |
enum | SysArch { INTEL32 , INTEL64 , ARM32 , ARM64 , RISCV64 , S390X , PPC32 , PPC64 , MIPS32 , MIPS64 , SPARC } |
Operating system architecture. More... | |
enum | SysFlavor { NONE , UNKNOWN , FEDORA , REDHAT , UBUNTU , DEBIAN , RASPBIAN , ALPINE , FREEBSD , NETBSD , OPENBSD , DFLYBSD } |
Operating systems flavor, typically a Linux distribution. More... | |
enum | SysOS { LINUX , MACOS , BSD , WINDOWS } |
Operating systems families. More... | |
Public Member Functions | |
SysArch | arch () const |
Get the architecture of the CPU on which we run. | |
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. | |
size_t | memoryPageSize () const |
Get system memory page size. | |
SysOS | os () const |
Get the operating system family. | |
SysFlavor | osFlavor () const |
Get the operating system flavor. | |
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.
enum ts::SysInfo::SysArch |
Operating system architecture.
Note: unlisted architectures are not supported.
enum ts::SysInfo::SysOS |
Operating systems families.
Note: unlisted systems are not supported.
Operating systems flavor, typically a Linux distribution.
|
inlinestatic |
Get the instance of the singleton of this class.
|
inline |
Get the architecture of the CPU on which we run.
This can be different from the preprocessing directives. For instance, on Windows, the actual CPU can be INTEL64 but the compiled code can be INTEL32.
|
inline |
Get the operating system family.
|
inline |
Get the operating system flavor.
|
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.