xtd 0.2.0
toolkit.h
Go to the documentation of this file.
1 #pragma once
5 #include "core_export.h"
6 #include "iequatable.h"
7 #include "object.h"
8 #include "ustring.h"
9 #include "version.h"
10 
12 namespace 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::ustring& name, const xtd::version& version, const xtd::ustring& description);
35 
37  toolkit(const toolkit&) = default;
38  toolkit(toolkit&&) = default;
39  toolkit& operator =(const toolkit&) = default;
41 
43 
47  const xtd::ustring& description() const noexcept;
48 
51  const xtd::ustring& name() const noexcept;
52 
55  const xtd::version& version() const noexcept;
57 
59 
61  bool equals(const toolkit& other) const noexcept override;
62  xtd::ustring to_string() const noexcept override;
64 
65  private:
66  xtd::ustring description_ = "No toolkit defined.";
67  xtd::ustring name_ = "Unknown";
68  xtd::version version_;
69  };
70 }
71 
Contains xtd::iequatable interface.
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:46
Represents the version number of an assembly, operating system, or the xtd. This class cannot be inhe...
Definition: version.h:95
std::string to_string(const date_time &value, const std::string &fmt, const std::locale &loc)
Convert a specified value into a string with specified format and locale.
Definition: date_time.h:1063
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition: iequatable.h:18
Represents a toolkit.
Definition: toolkit.h:19
Contains xtd::ustring class.
The operating system is other.
Contains xtd::version class.
Contains xtd::object class.
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes...
Definition: object.h:32