OpenMS
2.7.0
|
#include <OpenMS/SYSTEM/BuildInfo.h>
Public Member Functions | |
OpenMSOSInfo () | |
String | getOSAsString () const |
Get the current operating system (Windows, MacOS, Linux) More... | |
String | getArchAsString () const |
Get the current architecture (32-bit or 64-bit) More... | |
String | getOSVersionAsString () const |
Get the OS version (e.g. 10.15 for macOS or 10 for Windows) More... | |
Static Public Member Functions | |
static String | getBinaryArchitecture () |
Get Architecture of this binary (simply by looking at size of a pointer, i.e. size_t). More... | |
static OpenMSOSInfo | getOSInfo () |
Constructs and returns an OpenMSOSInfo object. More... | |
Private Attributes | |
OpenMS_OS | os_ |
String | os_version_ |
OpenMS_Architecture | arch_ |
|
inline |
|
inline |
Get the current architecture (32-bit or 64-bit)
References OpenMSOSInfo::arch_, and OpenMS::Internal::OpenMS_ArchNames.
|
inlinestatic |
Get Architecture of this binary (simply by looking at size of a pointer, i.e. size_t).
References OpenMS::Internal::ARCH_32BIT, OpenMS::Internal::ARCH_64BIT, OpenMS::Internal::ARCH_UNKNOWN, and OpenMS::Internal::OpenMS_ArchNames.
|
inline |
Get the current operating system (Windows, MacOS, Linux)
References OpenMS::Internal::OpenMS_OSNames, and OpenMSOSInfo::os_.
|
inlinestatic |
Constructs and returns an OpenMSOSInfo object.
References OpenMSOSInfo::arch_, OpenMS::Internal::ARCH_32BIT, OpenMS::Internal::ARCH_64BIT, OpenMSOSInfo::os_, OpenMS::Internal::OS_LINUX, OpenMS::Internal::OS_MACOS, OpenMSOSInfo::os_version_, and OpenMS::Internal::OS_WINDOWS.
|
inline |
Get the OS version (e.g. 10.15 for macOS or 10 for Windows)
References OpenMSOSInfo::os_version_.
|
private |
Referenced by OpenMSOSInfo::getArchAsString(), and OpenMSOSInfo::getOSInfo().
|
private |
Referenced by OpenMSOSInfo::getOSAsString(), and OpenMSOSInfo::getOSInfo().
|
private |
Referenced by OpenMSOSInfo::getOSInfo(), and OpenMSOSInfo::getOSVersionAsString().