xtd 0.2.0
Loading...
Searching...
No Matches
attribute.h
Go to the documentation of this file.
1
3#pragma once
4#include "guid.h"
5#include "object.h"
6#include "string.h"
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.h: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.h:42
std::shared_ptr< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.h:25
Contains xtd::guid class.
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.