|
xentara-workbench-plugin v1.0.1
The Xentara Workbench Plugin Framework
|
A Xentara workbench skill. More...
#include <xentara/workbench/skill/Skill.hpp>
Inheritance diagram for xentara::workbench::skill::Skill::Class:Classes | |
| class | Registry |
Public Member Functions | |
| virtual | ~Class ()=0 |
| Virtual destructor. | |
| virtual auto | name () const -> std::string_view=0 |
| Gets the name of the skill. | |
| virtual auto | uuid () const -> utils::core::Uuid=0 |
| Gets the UUID of the skill. | |
| virtual auto | registerElements (Registry ®istry) const -> void=0 |
| Called by the framework to register all elements. | |
| virtual auto | createSkill () const -> std::unique_ptr< Skill >=0 |
| Called by the framework to create the runtime environment for the skill. | |
| virtual auto | allowElement (const Element::Class &elementClass) const -> bool=0 |
| Called by the framework to determine if it is allowed to create a top-level element. | |
A Xentara workbench skill.
|
pure virtualdefault |
Virtual destructor.
|
pure virtual |
Called by the framework to determine if it is allowed to create a top-level element.
This function is called to check if an element can be created that is not a child of any other elements belonging to the same skill. To determine whether an element can be the child of another skill element, Element::allowChildElement() is called instead.
| elementClass | The class for the element the framework wishes to construct |
Implemented in xentara::workbench::skill::Skill::ConcreteClass< DerivedSkill, kName, kUuid, ElementClasses >.
|
pure virtual |
Called by the framework to create the runtime environment for the skill.
The implementation for this method must create the run time environment for the skill.
| std::runtime_exception |
Implemented in xentara::workbench::skill::Skill::ConcreteClass< DerivedSkill, kName, kUuid, ElementClasses >.
|
pure virtual |
Gets the name of the skill.
Implemented in xentara::workbench::skill::Skill::ConcreteClass< DerivedSkill, kName, kUuid, ElementClasses >.
|
pure virtual |
Called by the framework to register all elements.
The element must register all element classes it provides.
| registry | The registry that should be used to register the classes |
Implemented in xentara::workbench::skill::Skill::ConcreteClass< DerivedSkill, kName, kUuid, ElementClasses >.
|
pure virtual |
Gets the UUID of the skill.
Implemented in xentara::workbench::skill::Skill::ConcreteClass< DerivedSkill, kName, kUuid, ElementClasses >.