Ocean
Ocean::System::OperatingSystem Class Reference

This class implements functions for the operating system. More...

Public Types

enum  OperatingSystemId {
  OSID_UNKNOWN , OSID_MICROSOFT_WINDOWS = 0x00001000 , OSID_MICROSOFT_WINDOWS_CLIENT = OSID_MICROSOFT_WINDOWS | 0x00000001 , OSID_MICROSOFT_WINDOWS_SERVER = OSID_MICROSOFT_WINDOWS | 0x00000002 ,
  OSID_MICROSOFT_WINDOWS_2000 = OSID_MICROSOFT_WINDOWS_CLIENT | 0x00000020 , OSID_MICROSOFT_WINDOWS_XP = OSID_MICROSOFT_WINDOWS_CLIENT | 0x00000030 , OSID_MICROSOFT_WINDOWS_VISTA = OSID_MICROSOFT_WINDOWS_CLIENT | 0x00000050 , OSID_MICROSOFT_WINDOWS_7 = OSID_MICROSOFT_WINDOWS_CLIENT | 0x00000070 ,
  OSID_MICROSOFT_WINDOWS_8 = OSID_MICROSOFT_WINDOWS_CLIENT | 0x00000080 , OSID_MICROSOFT_WINDOWS_8_1 = OSID_MICROSOFT_WINDOWS_CLIENT | 0x00000090 , OSID_MICROSOFT_WINDOWS_10 = OSID_MICROSOFT_WINDOWS_CLIENT | 0x00000100 , OSID_MICROSOFT_WINDOWS_SERVER_2003 = OSID_MICROSOFT_WINDOWS_SERVER | 0x00000030 ,
  OSID_MICROSOFT_WINDOWS_SERVER_2008 = OSID_MICROSOFT_WINDOWS_SERVER | 0x00000050 , OSID_MICROSOFT_WINDOWS_SERVER_2012 = OSID_MICROSOFT_WINDOWS_SERVER | 0x00000090 , OSID_MICROSOFT_WINDOWS_SERVER_2016 = OSID_MICROSOFT_WINDOWS_SERVER | 0x00000100 , OSID_MACINTOSH_OS = 0x00010000 ,
  OSID_MACINTOSH_OS_X = OSID_MACINTOSH_OS | 0x00000001 , OSID_ANDROID = 0x00100000 , OSID_LINUX = 0x01000000
}
 Definition of individual operating systems. More...
 

Static Public Member Functions

static OperatingSystemId id (std::wstring *version=nullptr)
 Returns the id of the current operating system. More...
 
static std::wstring name (const bool addVersion=true)
 Returns the name of the current operating system. More...
 

Detailed Description

This class implements functions for the operating system.

Member Enumeration Documentation

◆ OperatingSystemId

Definition of individual operating systems.

Enumerator
OSID_UNKNOWN 

Unknown operating system.

OSID_MICROSOFT_WINDOWS 

Windows operating system without specific version.

OSID_MICROSOFT_WINDOWS_CLIENT 

Windows client operating system without specific version.

OSID_MICROSOFT_WINDOWS_SERVER 

Windows server operating system without specific version.

OSID_MICROSOFT_WINDOWS_2000 

Windows 2000 with any kind of service pack.

OSID_MICROSOFT_WINDOWS_XP 

Windows XP with any kind of service pack.

OSID_MICROSOFT_WINDOWS_VISTA 

Windows Vista with any kind of service pack.

OSID_MICROSOFT_WINDOWS_7 

Windows 7 with any kind of service pack.

OSID_MICROSOFT_WINDOWS_8 

Windows 8 with any kind of service pack.

OSID_MICROSOFT_WINDOWS_8_1 

Windows 8.1 with any kind of service pack.

OSID_MICROSOFT_WINDOWS_10 

Windows 10 with any kind of service pack.

OSID_MICROSOFT_WINDOWS_SERVER_2003 

Windows Server 2003 with any kind of service pack.

OSID_MICROSOFT_WINDOWS_SERVER_2008 

Windows Server 2008 with any kind of service pack.

OSID_MICROSOFT_WINDOWS_SERVER_2012 

Windows Server 2012 with any kind of service pack.

OSID_MICROSOFT_WINDOWS_SERVER_2016 

Windows Server 2016 with any kind of service pack.

OSID_MACINTOSH_OS 

Macintosh operating system without specific version.

OSID_MACINTOSH_OS_X 

Macintosh OS X with any kind of service pack.

OSID_ANDROID 

Android operating system without specific version.

OSID_LINUX 

Member Function Documentation

◆ id()

static OperatingSystemId Ocean::System::OperatingSystem::id ( std::wstring *  version = nullptr)
static

Returns the id of the current operating system.

Parameters
versionOptional resulting (detailed) version of the operating system
Returns
The OS's id

◆ name()

static std::wstring Ocean::System::OperatingSystem::name ( const bool  addVersion = true)
static

Returns the name of the current operating system.

Parameters
addVersionTrue, to add the version of the operating system
Returns
The OS's name

The documentation for this class was generated from the following file: