Represents a particular operating system and provides information about it. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.
More...
#include <operating_system.h>
|
| | OperatingSystem (PlatformID platform, const Version &version) |
| | Constructs an instance that represents an operating system specified as particular platform id and version. More...
|
| |
| | OperatingSystem (PlatformID platform, const Version &version, const String &service_pack) |
| | Constructs an instance that represents an operating system specified as particular platform id, version and service pack. More...
|
| |
| PlatformID | get_Platform () const |
| | Returns the platform identifier of the operating system represented by the current object. More...
|
| |
| String | get_ServicePack () const |
| | Returns the service pack name of the operating system represented by the current object. More...
|
| |
| const Version & | get_Version () const |
| | Returns a constant reference to a Version object representing the version of the operating system represented by the current object. More...
|
| |
| String | get_VersionString () const |
| | Returns the string representation of the version of the operating system represented by the current object. More...
|
| |
| String | ToString () const |
| | Returns the string representation of the version of the operating system represented by the current object. More...
|
| |
|
| static bool | IsOSPlatform (const String &platform) |
| | Indicates whether the current application is running on the specified platform. More...
|
| |
| static bool | IsFreeBSD () |
| | Indicates whether the current application is running on FreeBSD. More...
|
| |
| static bool | IsLinux () |
| | Indicates whether the current application is running on Linux. More...
|
| |
| static bool | IsMacOS () |
| | Indicates whether the current application is running on MacOS. More...
|
| |
| static bool | IsWindows () |
| | Indicates whether the current application is running on Windows. More...
|
| |
Represents a particular operating system and provides information about it. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.
◆ OperatingSystem() [1/2]
| System::OperatingSystem::OperatingSystem |
( |
PlatformID |
platform, |
|
|
const Version & |
version |
|
) |
| |
Constructs an instance that represents an operating system specified as particular platform id and version.
- Parameters
-
| platform | The platform identifier of the operating system to be represented by the object being constructed |
| version | The version of the operating system to be represented by the object being constructed |
◆ OperatingSystem() [2/2]
| System::OperatingSystem::OperatingSystem |
( |
PlatformID |
platform, |
|
|
const Version & |
version, |
|
|
const String & |
service_pack |
|
) |
| |
Constructs an instance that represents an operating system specified as particular platform id, version and service pack.
- Parameters
-
| platform | The platform identifier of the operating system to be represented by the object being constructed |
| version | The version of the operating system to be represented by the object being constructed |
| service_pack | The name of the service pack of the operating system to be represented by the object being constructed |
◆ get_Platform()
| PlatformID System::OperatingSystem::get_Platform |
( |
| ) |
const |
Returns the platform identifier of the operating system represented by the current object.
◆ get_ServicePack()
| String System::OperatingSystem::get_ServicePack |
( |
| ) |
const |
Returns the service pack name of the operating system represented by the current object.
◆ get_Version()
| const Version & System::OperatingSystem::get_Version |
( |
| ) |
const |
Returns a constant reference to a Version object representing the version of the operating system represented by the current object.
◆ get_VersionString()
| String System::OperatingSystem::get_VersionString |
( |
| ) |
const |
Returns the string representation of the version of the operating system represented by the current object.
◆ IsFreeBSD()
| static bool System::OperatingSystem::IsFreeBSD |
( |
| ) |
|
|
static |
Indicates whether the current application is running on FreeBSD.
◆ IsLinux()
| static bool System::OperatingSystem::IsLinux |
( |
| ) |
|
|
static |
Indicates whether the current application is running on Linux.
◆ IsMacOS()
| static bool System::OperatingSystem::IsMacOS |
( |
| ) |
|
|
static |
Indicates whether the current application is running on MacOS.
◆ IsOSPlatform()
| static bool System::OperatingSystem::IsOSPlatform |
( |
const String & |
platform | ) |
|
|
static |
Indicates whether the current application is running on the specified platform.
◆ IsWindows()
| static bool System::OperatingSystem::IsWindows |
( |
| ) |
|
|
static |
Indicates whether the current application is running on Windows.
◆ ToString()
| String System::OperatingSystem::ToString |
( |
| ) |
const |
Returns the string representation of the version of the operating system represented by the current object.