Represents information about an operating system distribution, such as the version and name. This class cannot be inherited.
Public Types | |
| using | id_collection |
Public Constructors | |
| distribution (const xtd::string &name, const xtd::version &version, const xtd::string &code_name, const xtd::string &description, const xtd::string &id, const id_collection &like_ids, const xtd::string &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. | |
Public Properties | |
| 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. | |
Public Methods | |
| 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 distribution 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::distribution::distribution | ( | const xtd::string & | name, |
| const xtd::version & | version, | ||
| const xtd::string & | code_name, | ||
| const xtd::string & | description, | ||
| const xtd::string & | id, | ||
| const id_collection & | like_ids, | ||
| const xtd::string & | 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" is the code name of Ubuntu 22.04.
|
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".
|
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.
|
overridevirtualnoexcept |
Serves as a hash function for a particular type.
Reimplemented from xtd::object.
|
overridevirtualnoexcept |
Converts the value of this distribution object to its equivalent string representation.
Reimplemented from xtd::object.