xtd 0.2.0
Loading...
Searching...
No Matches
attribute.hpp
Go to the documentation of this file.
1
3#pragma once
4#include "guid.hpp"
5#include "object.hpp"
6#include "string.hpp"
7
9namespace xtd {
25 class attribute : public xtd::object {
26 public:
28 attribute(const attribute&) = default;
29 attribute(attribute&&) = default;
30 attribute& operator =(const attribute&) = default;
32
34
38 xtd::sptr<object> type_id() const noexcept;
40
41 protected:
43
47 attribute() = default;
49
51
55 virtual xtd::sptr<object> get_type_id() const noexcept = 0;
57 };
58}
Represents the base class for custom attributes.
Definition attribute.hpp:25
virtual xtd::sptr< object > get_type_id() const noexcept=0
When implemented in a derived class, gets a unique identifier for this attribute.
xtd::sptr< object > type_id() const noexcept
When implemented in a derived class, gets a unique identifier for this attribute.
attribute()=default
Initializes a new instance of the attribute class.
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:42
std::shared_ptr< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.hpp:25
Contains xtd::guid class.
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.