Represents information about an operating system distribution, such as the version and name. This class cannot be inherited.
Public Types | |
| using | id_collection = std::vector< xtd::ustring > |
Constructors | |
| distribution (const xtd::ustring &name, const xtd::version &version, const xtd::ustring &code_name, const xtd::ustring &description, const xtd::ustring &id, const id_collection &like_ids, const xtd::ustring &version_string, const xtd::uri &home, const xtd::uri &bug_repport) | |
| 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. More... | |
Properties | |
| const xtd::uri & | bug_repport () const noexcept |
| Gets operating system distribution bug repport url. More... | |
| const xtd::ustring & | code_name () const noexcept |
| Gets operating system distribution code name. For example "jammy". More... | |
| const xtd::ustring & | description () const noexcept |
| Gets operating system distribution description. For example "Ubuntu 22.04.2 LTS". More... | |
| const xtd::uri & | home () const noexcept |
| Gets operating system distribution home url. More... | |
| const xtd::ustring & | id () const noexcept |
| Gets operating system distribution identifier. More... | |
| const id_collection & | like_ids () const noexcept |
| Gets operating system distribution like identifiers array. More... | |
| const xtd::ustring & | name () const noexcept |
| Gets operating system distribution name. For example "Ubuntu". More... | |
| const xtd::version & | version () const noexcept |
| Gets a xtd::version object that identifies the operating system distribution. For example xtd::version(22, 4). More... | |
| const xtd::ustring & | version_string () const noexcept |
| Gets operating system distribution version string. More... | |
Methods | |
| xtd::ustring | to_string () const noexcept override |
| Converts the value of this distribution object to its equivalent string representation. More... | |
Additional Inherited Members | |
Public Member Functions inherited from xtd::object | |
| object ()=default | |
| Create a new instance of the ultimate base class object. More... | |
| bool | equals (const object &obj) const noexcept |
| Determines whether the specified object is equal to the current object. More... | |
| virtual size_t | get_hash_code () const noexcept |
| Serves as a hash function for a particular type. More... | |
| virtual type_object | get_type () const noexcept |
| Gets the type of the current instance. More... | |
| template<typename object_t > | |
| std::unique_ptr< object_t > | memberwise_clone () const noexcept |
| Creates a shallow copy of the current object. More... | |
Static Public Member Functions inherited from xtd::object | |
| static bool | equals (const object &object_a, const object &object_b) noexcept |
| Determines whether the specified object instances are considered equal. More... | |
| static bool | reference_equals (const object &object_a, const object &object_b) noexcept |
| Determines whether the specified object instances are the same instance. More... | |
| xtd::distribution::distribution | ( | const xtd::ustring & | name, |
| const xtd::version & | version, | ||
| const xtd::ustring & | code_name, | ||
| const xtd::ustring & | description, | ||
| const xtd::ustring & | id, | ||
| const id_collection & | like_ids, | ||
| const xtd::ustring & | version_string, | ||
| const xtd::uri & | home, | ||
| const xtd::uri & | bug_repport | ||
| ) |
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.
| 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. |
|
noexcept |
Gets operating system distribution bug repport url.
|
noexcept |
Gets operating system distribution code name. For example "jammy".
|
noexcept |
Gets operating system distribution description. For example "Ubuntu 22.04.2 LTS".
|
noexcept |
Gets operating system distribution home url.
|
noexcept |
Gets operating system distribution identifier.
|
noexcept |
Gets operating system distribution like identifiers array.
|
noexcept |
Gets operating system distribution name. For example "Ubuntu".
|
overridevirtualnoexcept |
Converts the value of this distribution object to its equivalent string representation.
Reimplemented from xtd::object.
|
noexcept |
Gets a xtd::version object that identifies the operating system distribution. For example xtd::version(22, 4).
|
noexcept |
Gets operating system distribution version string.