Represents information about an operating system distribution, such as the version and name. This class cannot be inherited.
- Header
#include <xtd/distribution>
- Namespace
- xtd
- Library
- xtd.core
|
| const xtd::uri & | bug_repport () const noexcept |
| | Gets operating system distribution bug repport url.
|
| |
| const xtd::string & | code_name () const noexcept |
| | Gets operating system distribution code name. For example "jammy" is the code name of Ubuntu 22.04.
|
| |
| const xtd::string & | description () const noexcept |
| | Gets operating system distribution description. For example "Ubuntu 22.04.2 LTS".
|
| |
| const xtd::uri & | home () const noexcept |
| | Gets operating system distribution home url.
|
| |
| const xtd::string & | id () const noexcept |
| | Gets operating system distribution identifier.
|
| |
| const id_collection & | like_ids () const noexcept |
| | Gets operating system distribution like identifiers array.
|
| |
| const xtd::string & | name () const noexcept |
| | Gets operating system distribution name. For example "Ubuntu".
|
| |
| const xtd::version & | version () const noexcept |
| | Gets a xtd::version object that identifies the operating system distribution. For example xtd::version(22, 4).
|
| |
| const xtd::string & | version_string () const noexcept |
| | Gets operating system distribution version string.
|
| |
|
| | 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.
|
| |
| 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.
|
| |
Initializes a new instance of the distribution class, using the specified name, version, code name, decription, identifier, like identifiers array, version string, home url and bug repport url.
- Parameters
-
| name | The operating system distribution name. |
| version | A Version object that indicates the version of the operating system distribution. |
| code_name | The operating system distribution code name. |
| description | The operating system distribution description. |
| id | The operating system distribution identifier. |
| like_ids | The operating system distribution like identifiers array. |
| version_string | The operating system distribution version string. |
| home | The operating system distribution home url. |
| bug_repport | The operating system distribution bug report url. |