xtd 0.2.0
attribute.h
Go to the documentation of this file.
1 #pragma once
4 #include "guid.h"
5 #include "object.h"
6 #include "ustring.h"
7 
9 namespace xtd {
23  class attribute : public xtd::object {
24  public:
26  attribute(const attribute&) = default;
27  attribute(attribute&&) = default;
28  attribute& operator =(const attribute&) = default;
30 
32 
36  std::shared_ptr<object> type_id() const noexcept;
38 
39  protected:
41 
45  attribute() = default;
47 
49 
53  virtual std::shared_ptr<object> get_type_id() const noexcept = 0;
55  };
56 }
Represents the base class for custom attributes.
Definition: attribute.h:23
virtual std::shared_ptr< object > get_type_id() const noexcept=0
When implemented in a derived class, gets a unique identifier for this attribute. ...
Contains xtd::guid class.
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
std::shared_ptr< object > type_id() const noexcept
When implemented in a derived class, gets a unique identifier for this attribute. ...
Contains xtd::ustring 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
attribute()=default
Initializes a new instance of the attribute class.