20 friend class ComponentHandler;
31 explicit Component(std::string name) : m_name { std::move(name) } {}
39 Component(std::string name, std::string uuid) : m_name { std::move(name) }, m_uuid { std::move(uuid) } {}
67 void set_uuid(std::string uuid) {
68 m_uuid = std::move(uuid);
76 void set_name(std::string name) {
77 m_name = std::move(name);
80 std::string m_name {};
81 std::string m_uuid {};
Holds the common info for all SDK components.
Definition component.h:18
Component(std::string name, std::string uuid)
The name and UUID constructor.
Definition component.h:39
Component()=default
The default constructor.
Component(std::string name)
The name constructor.
Definition component.h:31
std::string get_name() const
Gets the name of the component.
Definition component.h:48
std::string get_uuid() const
Gets the uuid of the component.
Definition component.h:57