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_android () const noexcept |
Determines whether the current platform is Android. | |
bool | is_free_bsd () const noexcept |
Determines whether the current platform is FreeBSD. | |
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 macOS family. | |
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::string | to_string () const noexcept override |
Converts the value of this operating_system object to its equivalent string representation. | |
Additional Inherited Members | |
Public Member Functions inherited from xtd::object | |
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 size_t | get_hash_code () const noexcept |
Serves as a hash function for a particular type. | |
virtual type_object | get_type () const noexcept |
Gets the type of the current instance. | |
template<typename object_t > | |
xtd::uptr< object_t > | memberwise_clone () const |
Creates a shallow copy of the current object. | |
Static Public Member Functions inherited from xtd::object | |
template<typename object_a_t , typename 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<typename object_a_t , typename 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.
|
noexcept |
Determines whether the current platform is Android.
|
noexcept |
Determines whether the current platform is FreeBSD.
|
noexcept |
Determines whether the current platform is iOS.
|
noexcept |
Determines whether the current platform is Linux.
|
noexcept |
Determines whether the current platform is macOS.
|
noexcept |
Determines whether the current platform is macOS family.
|
noexcept |
Determines whether the current platform is MINGW.
|
noexcept |
Determines whether the current platform is MSYS.
|
noexcept |
Determines whether the current platform is Posix.
|
noexcept |
Determines whether the current platform is Posix family.
|
noexcept |
Determines whether the current platform is Unix family.
|
noexcept |
Determines whether the current platform is tvOS family.
|
noexcept |
Determines whether the current platform is watchOS.
|
noexcept |
Determines whether the current platform is Windows.
|
noexcept |
Determines whether the current platform is Windows CE.
|
noexcept |
Determines whether the current platform is Windows family.
|
noexcept |
Determines whether the current platform is xbox.
|
overridevirtualnoexcept |
Converts the value of this operating_system object to its equivalent string representation.
Reimplemented from xtd::object.