OpenMS
OpenMSOSInfo Class Reference

#include <OpenMS/SYSTEM/BuildInfo.h>

Collaboration diagram for OpenMSOSInfo:
[legend]

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 String getActiveSIMDExtensions ()
 Obtain a list of SIMD extensions which are currently in use (i.e. used by the compiler during optimization, as well as for SIMDe code within OpenMS) More...
 
static OpenMSOSInfo getOSInfo ()
 Constructs and returns an OpenMSOSInfo object. More...
 

Private Attributes

OpenMS_OS os_
 
String os_version_
 
OpenMS_Architecture arch_
 

Constructor & Destructor Documentation

◆ OpenMSOSInfo()

OpenMSOSInfo ( )
inline

Member Function Documentation

◆ getActiveSIMDExtensions()

static String getActiveSIMDExtensions ( )
static

Obtain a list of SIMD extensions which are currently in use (i.e. used by the compiler during optimization, as well as for SIMDe code within OpenMS)

◆ getArchAsString()

String getArchAsString ( ) const
inline

Get the current architecture (32-bit or 64-bit)

References OpenMS::Internal::OpenMS_ArchNames.

◆ getBinaryArchitecture()

static String getBinaryArchitecture ( )
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.

◆ getOSAsString()

String getOSAsString ( ) const
inline

Get the current operating system (Windows, MacOS, Linux)

References OpenMS::Internal::OpenMS_OSNames.

◆ getOSInfo()

◆ getOSVersionAsString()

String getOSVersionAsString ( ) const
inline

Get the OS version (e.g. 10.15 for macOS or 10 for Windows)

Member Data Documentation

◆ arch_

OpenMS_Architecture arch_
private

Referenced by OpenMSOSInfo::getOSInfo().

◆ os_

OpenMS_OS os_
private

Referenced by OpenMSOSInfo::getOSInfo().

◆ os_version_

String os_version_
private

Referenced by OpenMSOSInfo::getOSInfo().