xentara-plugin v1.2.1
The Xentara Plugin Framework
Loading...
Searching...
No Matches
xentara::model::Attribute::Role Class Referencefinal

A built-in attribute role. More...

#include <model/Attribute.hpp>

+ Inheritance diagram for xentara::model::Attribute::Role:

Public Member Functions

 Role ()=delete
 Deleted constructor.
 
constexpr auto name () const -> const std::string_view &
 Gets the name.
 
constexpr auto uuid () const -> const utils::core::Uuid &
 Gets the UUID.
 
constexpr auto ioDirections () const -> io::Directions
 Gets the relevant I/O directions.
 
template<std::equality_comparable_with< std::string_view > String>
auto operator== (const String &rhs) const -> bool
 Checks the name of the attribute role.
 

Detailed Description

A built-in attribute role.

Attribute roles are used for attributes whose access and data type vary, but whose meaning is the same across entities.

Constructor & Destructor Documentation

◆ Role()

xentara::model::Attribute::Role::Role ( )
delete

Deleted constructor.

This class is not user constructible.

Member Function Documentation

◆ ioDirections()

constexpr auto xentara::model::Attribute::Role::ioDirections ( ) const -> io::Directions
constexpr

Gets the relevant I/O directions.

Returns
The I/O directions. The I/O directions are used for I/O attributes to specify whether a data point should inherit this attribute from its I/O points.

◆ name()

constexpr auto xentara::model::Attribute::Role::name ( ) const -> const std::string_view &
constexpr

Gets the name.

Returns
The name, in UTF-8 encoding

◆ operator==()

template<std::equality_comparable_with< std::string_view > String>
auto xentara::model::Attribute::Role::operator== ( const String &  rhs) const -> bool

Checks the name of the attribute role.

This is a convenience operator you can use to check the name of an attribute role when resolving it. It is equivalent to name() == rhs.

Returns
Returns true if the attribute role has the given name.

◆ uuid()

constexpr auto xentara::model::Attribute::Role::uuid ( ) const -> const utils::core::Uuid &
constexpr

Gets the UUID.