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 "ustring.h"
7
9namespace 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
std::shared_ptr< 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.
virtual std::shared_ptr< object > get_type_id() const noexcept=0
When implemented in a derived class, gets a unique identifier for this attribute.
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.h:32
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::ustring class.