xtd 0.2.0
toolkit.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "core_export.hpp"
6#include "iequatable.hpp"
7#include "object.hpp"
8#include "string.hpp"
9#include "version.hpp"
10
12namespace xtd {
19 class core_export_ toolkit : public object, public xtd::iequatable<toolkit> {
20 struct data;
21
22 public:
24
28 toolkit() = default;
33 toolkit(const xtd::string& name, const xtd::version& version, const xtd::string& description);
35
37 toolkit(const toolkit&) = default;
38 toolkit(toolkit&&) = default;
39 toolkit& operator =(const toolkit&) = default;
41
43
47 const xtd::string& description() const noexcept;
48
51 const xtd::string& name() const noexcept;
52
55 const xtd::version& version() const noexcept;
57
59
64 bool equals(const object& obj) const noexcept override;
68 bool equals(const toolkit& other) const noexcept override;
69
72 xtd::size get_hash_code() const noexcept override;
73
76 xtd::string to_string() const noexcept override;
78
79 private:
80 xtd::string description_ = "No toolkit defined.";
81 xtd::string name_ = "Unknown";
82 xtd::version version_;
83 };
84}
85
Represents text as a sequence of character units.
Definition basic_string.hpp:71
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.hpp:22
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:44
Represents a toolkit.
Definition toolkit.hpp:19
toolkit()=default
Initializes a new instance of the xtd::toolkit class.
toolkit(const xtd::string &name, const xtd::version &version, const xtd::string &description)
Initializes a new instance of the xtd::toolkit class with the specified name and version.
const xtd::string & description() const noexcept
Gets the toolkit description.
Represents the version number of an assembly, operating system, or the xtd. This class cannot be inhe...
Definition version.hpp:114
Contains core_export_ keyword.
#define core_export_
Define shared library export.
Definition core_export.hpp:13
size_t size
Represents a size of any object in bytes.
Definition size.hpp:23
Contains xtd::iequatable interface.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
Contains xtd::object class.
Contains xtd::string alias.
Contains xtd::version class.