System::OperatingSystem Class Reference

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...

Public Member Functions

ASPOSECPP_SHARED_API OperatingSystem (PlatformID platform, const Version &version)
 Constructs an instance that represents an operating system specified as particular platform id and version. More...
 
ASPOSECPP_SHARED_API 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...
 
ASPOSECPP_SHARED_API PlatformID get_Platform () const
 Returns the platform identifier of the operating system represented by the current object. More...
 
ASPOSECPP_SHARED_API String get_ServicePack () const
 Returns the service pack name of the operating system represented by the current object. More...
 
ASPOSECPP_SHARED_API const Versionget_Version () const
 Returns a constant reference to a Version object representing the version of the operating system represented by the current object. More...
 
ASPOSECPP_SHARED_API String get_VersionString () const
 Returns the string representation of the version of the operating system represented by the current object. More...
 
ASPOSECPP_SHARED_API String ToString () const
 Returns the string representation of the version of the operating system represented by the current object. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ OperatingSystem() [1/2]

ASPOSECPP_SHARED_API System::OperatingSystem::OperatingSystem ( PlatformID  platform,
const Version version 
)

Constructs an instance that represents an operating system specified as particular platform id and version.

Parameters
platformThe platform identifier of the operating system to be represented by the object being constructed
versionThe version of the operating system to be represented by the object being constructed

◆ OperatingSystem() [2/2]

ASPOSECPP_SHARED_API 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
platformThe platform identifier of the operating system to be represented by the object being constructed
versionThe version of the operating system to be represented by the object being constructed
service_packThe name of the service pack of the operating system to be represented by the object being constructed

Member Function Documentation

◆ get_Platform()

ASPOSECPP_SHARED_API PlatformID System::OperatingSystem::get_Platform ( ) const

Returns the platform identifier of the operating system represented by the current object.

◆ get_ServicePack()

ASPOSECPP_SHARED_API String System::OperatingSystem::get_ServicePack ( ) const

Returns the service pack name of the operating system represented by the current object.

◆ get_Version()

ASPOSECPP_SHARED_API 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()

ASPOSECPP_SHARED_API String System::OperatingSystem::get_VersionString ( ) const

Returns the string representation of the version of the operating system represented by the current object.

◆ ToString()

ASPOSECPP_SHARED_API String System::OperatingSystem::ToString ( ) const

Returns the string representation of the version of the operating system represented by the current object.