xtd 0.2.0
assembly_description_attribute.h
Go to the documentation of this file.
1 #pragma once
4 #include "../core_export.h"
5 #include "../attribute.h"
6 
8 namespace xtd {
10  namespace reflection {
25  class core_export_ assembly_description_attribute final : public xtd::attribute {
26  public:
28 
32  explicit assembly_description_attribute(const ustring& description);
33 
36  assembly_description_attribute(const ustring& description, const object& executing_assembly);
38 
40 
44  const ustring& description() const noexcept;
46 
47  protected:
48  std::shared_ptr<object> get_type_id() const noexcept override;
49 
50  private:
51  ustring description_;
52  };
53  }
54 }
55 
57 std::shared_ptr<xtd::reflection::assembly_description_attribute>& __assembly_description_attribute__();
59 
73 #define assembly_description_(description) \
74  xtd::reflection::assembly_description_attribute __assembly_description_attribute {description, xtd::object()}
Represents the base class for custom attributes.
Definition: attribute.h:23
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
Provides a text description for an assembly.
Definition: assembly_description_attribute.h:25