xtd 0.2.0
Loading...
Searching...
No Matches
toolkit.h
Go to the documentation of this file.
1
4#pragma once
5#include "core_export.h"
6#include "iequatable.h"
7#include "object.h"
8#include "string.h"
9#include "version.h"
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
61 using object::equals;
62 bool equals(const toolkit& other) const noexcept override;
63 xtd::string to_string() const noexcept override;
65
66 private:
67 xtd::string description_ = "No toolkit defined.";
68 xtd::string name_ = "Unknown";
69 xtd::version version_;
70 };
71}
72
Represents text as a sequence of character units.
Definition basic_string.h:79
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.h:22
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.h:42
Represents a toolkit.
Definition toolkit.h: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.h:114
Contains core_export_ keyword.
#define core_export_
Define shared library export.
Definition core_export.h:13
Contains xtd::iequatable interface.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Contains xtd::object class.
Contains xtd::string alias.
Contains xtd::version class.