Represents information about an operating system, such as the version and platform identifier. This class cannot be inherited.
Public Constructors | |
| operating_system (xtd::platform_id platform, const xtd::version &version) | |
| Initializes a new instance of the operating_system class, using the specified platform identifier value and version object. | |
| operating_system (xtd::platform_id platform, const xtd::version &version, const xtd::string &service_pack) | |
| Initializes a new instance of the operating_system class, using the specified platform identifier value and version object. | |
| operating_system (xtd::platform_id platform, const xtd::version &version, const xtd::string &service_pack, const xtd::string &desktop_environment) | |
| Initializes a new instance of the operating_system class, using the specified platform identifier value and version object. | |
| operating_system (xtd::platform_id platform, const xtd::version &version, const xtd::string &service_pack, const xtd::string &desktop_environment, const xtd::string &desktop_theme) | |
| Initializes a new instance of the operating_system class, using the specified platform identifier value and version object. | |
| operating_system (xtd::platform_id platform, const xtd::version &version, const xtd::string &service_pack, const xtd::string &desktop_environment, const xtd::string &desktop_theme, bool is_64_bit) | |
| Initializes a new instance of the operating_system class, using the specified platform identifier value and version object. | |
| operating_system (xtd::platform_id platform, const xtd::version &version, const xtd::string &service_pack, const xtd::string &desktop_environment, const xtd::string &desktop_theme, bool is_64_bit, const xtd::distribution &distribution) | |
| Initializes a new instance of the operating_system class, using the specified platform identifier value and version object. | |
Public Properties | |
| xtd::string | desktop_environment () const noexcept |
| Gets the desktop environment. | |
| xtd::string | desktop_theme () const noexcept |
| Gets the desktop theme. | |
| xtd::distribution | distribution () const noexcept |
| Gets the distribution. | |
| xtd::string | name () const noexcept |
| Gets the concatenated string representation of the platform identifier. | |
| xtd::platform_id | platform () const noexcept |
| Gets a xtd::platform_id enumeration value that identifies the operating system platform. | |
| xtd::string | service_pack () const noexcept |
| Gets the service pack version represented by this operating_system object. | |
| const xtd::version & | version () const noexcept |
| Gets a xtd::version object that identifies the operating system. | |
| xtd::string | version_string () const noexcept |
| Gets the concatenated string representation of the platform identifier, version, and service pack that are currently installed on the operating system. | |
Public Methods | |
| bool | is_64_bit () const noexcept |
| Determines whether the current operating system is a 64-bit operating system. | |
| bool | is_aix () const noexcept |
| Determines whether the current platform is AIX. | |
| bool | is_android () const noexcept |
| Determines whether the current platform is Android. | |
| bool | is_apple_platform () const noexcept |
| Determines whether the current platform belongs to the Apple ecosystem (macOS, iOS, tvOS, or watchOS). | |
| bool | is_bsd_platform () const noexcept |
| Determines whether the current platform is BSD (FreeBSD, or Darwin). | |
| bool | is_darwin () const noexcept |
| Determines whether the current platform is Darwin (macOS, iOS, tvOS, or watchOS). | |
| bool | is_free_bsd () const noexcept |
| Determines whether the current platform is FreeBSD. | |
| bool | is_haiku () const noexcept |
| Determines whether the current platform is Haiku. | |
| bool | is_serenityos () const noexcept |
| Determines whether the current platform is SerenityOS. | |
| bool | is_ios () const noexcept |
| Determines whether the current platform is iOS. | |
| bool | is_linux () const noexcept |
| Determines whether the current platform is Linux. | |
| bool | is_macos () const noexcept |
| Determines whether the current platform is macOS. | |
| bool | is_macos_platform () const noexcept |
| Determines whether the current platform is part of the macOS family (including macOS, iOS, tvOS, or watchOS). | |
| bool | is_mingw () const noexcept |
| Determines whether the current platform is MINGW. | |
| bool | is_msys () const noexcept |
| Determines whether the current platform is MSYS. | |
| bool | is_posix () const noexcept |
| Determines whether the current platform is Posix. | |
| bool | is_posix_platform () const noexcept |
| Determines whether the current platform is Posix family. | |
| bool | is_unix_platform () const noexcept |
| Determines whether the current platform is Unix family. | |
| bool | is_tvos () const noexcept |
| Determines whether the current platform is tvOS family. | |
| bool | is_watchos () const noexcept |
| Determines whether the current platform is watchOS. | |
| bool | is_windows () const noexcept |
| Determines whether the current platform is Windows. | |
| bool | is_windows_ce () const noexcept |
| Determines whether the current platform is Windows CE. | |
| bool | is_windows_platform () const noexcept |
| Determines whether the current platform is Windows family. | |
| bool | is_xbox () const noexcept |
| Determines whether the current platform is xbox. | |
| xtd::size | get_hash_code () const noexcept override |
| Serves as a hash function for a particular type. | |
| xtd::string | to_string () const noexcept override |
| Converts the value of this operating_system object to its equivalent string representation. | |
Additional Inherited Members | |
| object ()=default | |
| Create a new instance of the ultimate base class object. | |
| virtual bool | equals (const object &obj) const noexcept |
| Determines whether the specified object is equal to the current object. | |
| virtual type_object | get_type () const noexcept |
| Gets the type of the current instance. | |
| template<class object_t> | |
| xtd::unique_ptr_object< object_t > | memberwise_clone () const |
| Creates a shallow copy of the current object. | |
| template<class object_a_t, class object_b_t> | |
| static bool | equals (const object_a_t &object_a, const object_b_t &object_b) noexcept |
| Determines whether the specified object instances are considered equal. | |
| template<class object_a_t, class object_b_t> | |
| static bool | reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept |
| Determines whether the specified object instances are the same instance. | |
| xtd::operating_system::operating_system | ( | xtd::platform_id | platform, |
| const xtd::version & | version ) |
Initializes a new instance of the operating_system class, using the specified platform identifier value and version object.
| platform | One of the xtd::platform_id values that indicates the operating system platform. |
| version | A Version object that indicates the version of the operating system. |
| ArgumentNullException | version is null. |
| ArgumentException | platform is not a xtd::platform_id enumeration value. |
| xtd::operating_system::operating_system | ( | xtd::platform_id | platform, |
| const xtd::version & | version, | ||
| const xtd::string & | service_pack ) |
Initializes a new instance of the operating_system class, using the specified platform identifier value and version object.
| platform | One of the xtd::platform_id values that indicates the operating system platform. |
| version | A Version object that indicates the version of the operating system. |
| service_pack | A string, such as "Service Pack 3", that represent the service pack. If no Service Pack has been installed, the string must be empty. |
| ArgumentNullException | version is null. |
| ArgumentException | platform is not a xtd::platform_id enumeration value. |
| xtd::operating_system::operating_system | ( | xtd::platform_id | platform, |
| const xtd::version & | version, | ||
| const xtd::string & | service_pack, | ||
| const xtd::string & | desktop_environment ) |
Initializes a new instance of the operating_system class, using the specified platform identifier value and version object.
| platform | One of the xtd::platform_id values that indicates the operating system platform. |
| version | A Version object that indicates the version of the operating system. |
| service_pack | A string, such as "Service Pack 3", that represent the service pack. If no Service Pack has been installed, the string must be empty. |
| desktop_environment | A string, such as "gnome", "kde", "windows", "macos". |
| ArgumentNullException | version is null. |
| ArgumentException | platform is not a xtd::platform_id enumeration value. |
| xtd::operating_system::operating_system | ( | xtd::platform_id | platform, |
| const xtd::version & | version, | ||
| const xtd::string & | service_pack, | ||
| const xtd::string & | desktop_environment, | ||
| const xtd::string & | desktop_theme ) |
Initializes a new instance of the operating_system class, using the specified platform identifier value and version object.
| platform | One of the xtd::platform_id values that indicates the operating system platform. |
| version | A Version object that indicates the version of the operating system. |
| service_pack | A string, such as "Service Pack 3", that represent the service pack. If no Service Pack has been installed, the string must be empty. |
| desktop_environment | A string, such as "gnome", "kde", "windows", "macos". |
| desktop_theme | A string, such as "Adwaita", "Breeze", "windows dark", "macos dark", ... |
| ArgumentNullException | version is null. |
| ArgumentException | platform is not a xtd::platform_id enumeration value. |
| xtd::operating_system::operating_system | ( | xtd::platform_id | platform, |
| const xtd::version & | version, | ||
| const xtd::string & | service_pack, | ||
| const xtd::string & | desktop_environment, | ||
| const xtd::string & | desktop_theme, | ||
| bool | is_64_bit ) |
Initializes a new instance of the operating_system class, using the specified platform identifier value and version object.
| platform | One of the xtd::platform_id values that indicates the operating system platform. |
| version | A Version object that indicates the version of the operating system. |
| service_pack | A string, such as "Service Pack 3", that represent the service pack. If no Service Pack has been installed, the string must be empty. |
| desktop_environment | A string, such as "gnome", "kde", "windows", "macos". |
| desktop_theme | A string, such as "Adwaita", "Breeze", "windows dark", "macos dark", ... |
| is_64_bit | True if Operating System is 64 bits; otherwise false. |
| ArgumentNullException | version is null. |
| ArgumentException | platform is not a xtd::platform_id enumeration value. |
| xtd::operating_system::operating_system | ( | xtd::platform_id | platform, |
| const xtd::version & | version, | ||
| const xtd::string & | service_pack, | ||
| const xtd::string & | desktop_environment, | ||
| const xtd::string & | desktop_theme, | ||
| bool | is_64_bit, | ||
| const xtd::distribution & | distribution ) |
Initializes a new instance of the operating_system class, using the specified platform identifier value and version object.
| platform | One of the xtd::platform_id values that indicates the operating system platform. |
| version | A Version object that indicates the version of the operating system. |
| service_pack | A string, such as "Service Pack 3", that represent the service pack. If no Service Pack has been installed, the string must be empty. |
| desktop_environment | A string, such as "gnome", "kde", "windows", "macos". |
| desktop_theme | A string, such as "Adwaita", "Breeze", "windows dark", "macos dark", ... |
| is_64_bit | True if Operating System is 64 bits; otherwise false. |
| distribution | An xtd::distribution that contains the operating system distribution informations. |
| ArgumentNullException | version is null. |
| ArgumentException | platform is not a xtd::platform_id enumeration value. |
|
noexcept |
Gets the desktop environment.
|
noexcept |
Gets the desktop theme.
|
noexcept |
Gets the distribution.
|
noexcept |
Gets the concatenated string representation of the platform identifier.
|
noexcept |
Gets a xtd::platform_id enumeration value that identifies the operating system platform.
|
noexcept |
Gets the service pack version represented by this operating_system object.
|
noexcept |
Gets a xtd::version object that identifies the operating system.
|
noexcept |
Gets the concatenated string representation of the platform identifier, version, and service pack that are currently installed on the operating system.
|
noexcept |
Determines whether the current operating system is a 64-bit operating system.
true if the operating system is 64-bit; otherwise, false.
|
noexcept |
Determines whether the current platform is AIX.
true if the current platform is AIX; otherwise, false.
|
noexcept |
Determines whether the current platform is Android.
true if the current platform is Android; otherwise, false.
|
noexcept |
Determines whether the current platform belongs to the Apple ecosystem (macOS, iOS, tvOS, or watchOS).
true if the current platform is macOS, iOS, tvOS, or watchOS; otherwise, false.
|
noexcept |
Determines whether the current platform is BSD (FreeBSD, or Darwin).
true if the current platform is BSD; otherwise, false.
|
noexcept |
Determines whether the current platform is Darwin (macOS, iOS, tvOS, or watchOS).
true if the current platform is Darwin; otherwise, false.
|
noexcept |
Determines whether the current platform is FreeBSD.
true if the current platform is FreeBSD; otherwise, false.
|
noexcept |
Determines whether the current platform is Haiku.
true if the current platform is Haiku; otherwise, false.
|
noexcept |
Determines whether the current platform is SerenityOS.
true if the current platform is SerenityOS; otherwise, false.
|
noexcept |
Determines whether the current platform is iOS.
true if the current platform is iOS; otherwise, false.
|
noexcept |
Determines whether the current platform is Linux.
true if the current platform is Linux; otherwise, false.
|
noexcept |
Determines whether the current platform is macOS.
true if the current platform is macOS; otherwise, false.
|
noexcept |
Determines whether the current platform is part of the macOS family (including macOS, iOS, tvOS, or watchOS).
true if the current platform is macOS, iOS, tvOS, or watchOS; otherwise, false. is_apple_platform() and exists for naming consistency. Prefer is_apple_platform() for semantic clarity.
|
noexcept |
Determines whether the current platform is MINGW.
true if the current platform is MINGW; otherwise, false.
|
noexcept |
Determines whether the current platform is MSYS.
true if the current platform is MSYS; otherwise, false.
|
noexcept |
Determines whether the current platform is Posix.
true if the current platform is Posix; otherwise, false.
|
noexcept |
Determines whether the current platform is Posix family.
true if the current platform is Posix family; otherwise, false.
|
noexcept |
Determines whether the current platform is Unix family.
true if the current platform is Unix family; otherwise, false.
|
noexcept |
Determines whether the current platform is tvOS family.
true if the current platform is macOS family; otherwise, false.
|
noexcept |
Determines whether the current platform is watchOS.
true if the current platform is watchOS; otherwise, false.
|
noexcept |
Determines whether the current platform is Windows.
true if the current platform is Windows; otherwise, false.
|
noexcept |
Determines whether the current platform is Windows CE.
true if the current platform is Windows CE; otherwise, false.
|
noexcept |
Determines whether the current platform is Windows family.
true if the current platform is Windows family; otherwise, false.
|
noexcept |
Determines whether the current platform is xbox.
true if the current platform is xbox; otherwise, false.
|
overridevirtualnoexcept |
Serves as a hash function for a particular type.
Reimplemented from xtd::object.
|
overridevirtualnoexcept |
Converts the value of this operating_system object to its equivalent string representation.
Reimplemented from xtd::object.