OpenMS  2.7.0
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
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 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

◆ getArchAsString()

String getArchAsString ( ) const
inline

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

References OpenMSOSInfo::arch_, and 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, and OpenMSOSInfo::os_.

◆ getOSInfo()

static OpenMSOSInfo getOSInfo ( )
inlinestatic

◆ getOSVersionAsString()

String getOSVersionAsString ( ) const
inline

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

References OpenMSOSInfo::os_version_.

Member Data Documentation

◆ arch_

OpenMS_Architecture arch_
private

◆ os_

OpenMS_OS os_
private

◆ os_version_

String os_version_
private