|
xentara-plugin v2.0.6
The Xentara Plugin Framework
|
A built-in task role. More...
#include <xentara/process/Task.hpp>
Inheritance diagram for xentara::process::Task::Role:Public Member Functions | |
| constexpr | Role (const utils::core::Uuid &uuid, std::string_view name) |
| Constructor. | |
| constexpr auto | name () const -> const std::string_view & |
| Gets the name. | |
| constexpr auto | uuid () const -> const utils::core::Uuid & |
| Gets the UUID. | |
| template<utils::tools::EqualityComparableWithExcept< std::string_view, Role > String> | |
| auto | operator== (const String &rhs) const -> bool |
| Checks the name of the task role. | |
| template<utils::tools::EqualityComparableWithExcept< utils::core::Uuid, Role > Uuid> | |
| auto | operator== (const Uuid &rhs) const -> bool |
| Checks the UUID of the task role. | |
A built-in task role.
Task roles are used for tasks whose functionality is the same across elements.
|
constexpr |
Constructor.
| uuid | The UUID of the tasks with this role |
| name | The name of the task with this role, in UTF-8 encoding. The string data the view references to is not copied. It must remain valid for the lifetime of the plugin. |
|
constexpr |
Gets the name.
| auto xentara::process::Task::Role::operator== | ( | const String & | rhs | ) | const -> bool |
Checks the name of the task role.
This is a convenience operator you can use to check the name of an task role. It is equivalent to name() == rhs.
| auto xentara::process::Task::Role::operator== | ( | const Uuid & | rhs | ) | const -> bool |
Checks the UUID of the task role.
This is a convenience operator you can use to check the UUID of an task role. It is equivalent to uuid() == rhs.
|
constexpr |
Gets the UUID.