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
|
| auto | bug_repport () const noexcept -> const xtd::uri & |
| | Gets operating system distribution bug repport url.
|
| auto | code_name () const noexcept -> const xtd::string & |
| | Gets operating system distribution code name. For example "jammy" is the code name of Ubuntu 22.04.
|
| auto | description () const noexcept -> const xtd::string & |
| | Gets operating system distribution description. For example "Ubuntu 22.04.2 LTS".
|
| auto | home () const noexcept -> const xtd::uri & |
| | Gets operating system distribution home url.
|
| auto | id () const noexcept -> const xtd::string & |
| | Gets operating system distribution identifier.
|
| auto | like_ids () const noexcept -> const id_collection & |
| | Gets operating system distribution like identifiers array.
|
| auto | name () const noexcept -> const xtd::string & |
| | Gets operating system distribution name. For example "Ubuntu".
|
| auto | version () const noexcept -> const xtd::version & |
| | Gets a xtd::version object that identifies the operating system distribution. For example xtd::version(22, 4).
|
| auto | version_string () const noexcept -> const xtd::string & |
| | Gets operating system distribution version string.
|
|
| | object ()=default |
| | Create a new instance of the ultimate base class object.
|
| virtual auto | equals (const object &obj) const noexcept -> bool |
| | Determines whether the specified object is equal to the current object.
|
| virtual auto | get_type () const noexcept -> type_object |
| | Gets the type of the current instance.
|
| template<typename object_t> |
| auto | memberwise_clone () const -> xtd::unique_ptr_object< object_t > |
| | Creates a shallow copy of the current object.
|
| template<typename object_a_t, typename object_b_t> |
| static auto | equals (const object_a_t &object_a, const object_b_t &object_b) noexcept -> bool |
| | Determines whether the specified object instances are considered equal.
|
| template<typename object_a_t, typename object_b_t> |
| static auto | reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept -> bool |
| | 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. |