xentara-plugin v2.0.4
The Xentara Plugin Framework
|
A generic element within a Xentara model. More...
#include <xentara/model/Element.hpp>
Public Member Functions | |
virtual | ~Element ()=0 |
Virtual destructor. | |
Access to the Properties | |
auto | name () const noexcept -> utils::string::StringView |
Gets the name of the element. | |
auto | primaryKey () const noexcept -> utils::string::StringView |
Gets the primary key of the element. | |
auto | subElementPrimaryKey (std::string_view subElementName) const -> std::string |
Gets the primary key of a sub element (attribute, event, task, or child element) | |
auto | uuid () const noexcept -> utils::core::Uuid |
Gets the UUID of the element. | |
auto | type () const noexcept -> std::string_view |
Gets the type of the element. | |
auto | category () const noexcept -> ElementCategory |
Gets the element category of the element. | |
Access to Elements Members | |
auto | attribute (std::string_view name) const noexcept -> std::shared_ptr< const Attribute > |
Gets the attribute with a specific name. | |
auto | attribute (const utils::core::Uuid &uuid) const noexcept -> std::shared_ptr< const Attribute > |
Gets the attribute with a specific UUID. | |
auto | attribute (const Attribute::Role &role) const noexcept -> std::shared_ptr< const Attribute > |
Gets the attribute with a specific attribute role. | |
auto | attributes () const -> std::vector< std::shared_ptr< const Attribute > > |
Returns a list of all the element’s attributes. | |
auto | event (std::string_view name) const noexcept -> std::shared_ptr< const process::Event > |
Gets the event with a specific name. | |
auto | event (std::string_view name) noexcept -> std::shared_ptr< process::Event > |
Gets the event with a specific name. | |
auto | event (const utils::core::Uuid &uuid) const noexcept -> std::shared_ptr< const process::Event > |
Gets the event with a specific UUID. | |
auto | event (const utils::core::Uuid &uuid) noexcept -> std::shared_ptr< process::Event > |
Gets the event with a specific UUID. | |
auto | events () const -> std::vector< std::shared_ptr< const process::Event > > |
Returns a list of all the element’s events. | |
auto | events () -> std::vector< std::shared_ptr< process::Event > > |
Returns a list of all the element’s events. | |
auto | extendedEvent (std::string_view name) const noexcept -> process::ExtendedEvent |
Gets the event with a specific name, including change events for attributes. | |
auto | extendedEvent (const utils::core::Uuid &uuid) const noexcept -> process::ExtendedEvent |
Gets the event with a specific UUID, including change events for attributes. | |
auto | task (std::string_view name) const noexcept -> std::shared_ptr< const process::Task > |
Gets the task with a specific name. | |
auto | task (std::string_view name) noexcept -> std::shared_ptr< process::Task > |
Gets the task with a specific name. | |
auto | task (const utils::core::Uuid &uuid) const noexcept -> std::shared_ptr< const process::Task > |
Gets the task with a specific UUID. | |
auto | task (const utils::core::Uuid &uuid) noexcept -> std::shared_ptr< process::Task > |
Gets the task with a specific UUID. | |
auto | tasks () const -> std::vector< std::shared_ptr< const process::Task > > |
Returns a list of all the element’s tasks. | |
auto | tasks () -> std::vector< std::shared_ptr< process::Task > > |
Returns a list of all the element’s tasks. | |
Access to the Element Hierarchy | |
auto | childElement (std::string_view name) const noexcept -> std::shared_ptr< const Element > |
Gets the child element with a specific name. | |
auto | childElement (std::string_view name) noexcept -> std::shared_ptr< Element > |
Gets the child element with a specific name. | |
auto | childElements () const -> std::vector< std::shared_ptr< const Element > > |
Returns a list of all the element’s children. | |
auto | childElements () -> std::vector< std::shared_ptr< Element > > |
Returns a list of all the element’s children. | |
auto | parentElement () const -> std::shared_ptr< const Element > |
Returns the element’s parent. | |
auto | parentElement () -> std::shared_ptr< Element > |
Returns the element’s parent. | |
auto | rootElement () const -> std::shared_ptr< const Element > |
Returns the invisible root element of the model this element belongs to. | |
auto | rootElement () -> std::shared_ptr< Element > |
Returns the invisible root element of the model this element belongs to. | |
Iterator Functions | |
template<std::invocable< const std::shared_ptr< const model::Attribute > & > Callback> | |
auto | forEachAttribute (Callback &&callback) const -> bool |
Iterates over all the element’s attributes. | |
template<std::invocable< const utils::core::Uuid &, std::string_view, const std::shared_ptr< const process::Event > & > Callback> | |
auto | forEachEvent (Callback &&callback) const -> bool |
Iterates over all the element’s events. | |
template<std::invocable< const utils::core::Uuid &, std::string_view, const std::shared_ptr< process::Event > & > Callback> | |
auto | forEachEvent (Callback &&callback) -> bool |
Iterates over all the element’s events. | |
template<std::invocable< const utils::core::Uuid &, std::string_view, const std::shared_ptr< const process::Task > & > Callback> | |
auto | forEachTask (Callback &&callback) const -> bool |
Iterates over all the element’s tasks. | |
template<std::invocable< const utils::core::Uuid &, std::string_view, const std::shared_ptr< process::Task > & > Callback> | |
auto | forEachTask (Callback &&callback) -> bool |
Iterates over all the element’s tasks. | |
template<std::invocable< const std::shared_ptr< const Element > & > Callback> | |
auto | forEachChildElement (Callback &&callback) const -> bool |
Iterates over all the child elements. | |
template<std::invocable< const std::shared_ptr< Element > & > Callback> | |
auto | forEachChildElement (Callback &&callback) -> bool |
Iterates over all the child elements. | |
Creating Read and Write Handles | |
auto | attributeReadHandle (const Attribute &attribute) const noexcept -> data::ReadHandle |
Gets a read handle for a specific attribute. | |
auto | attributeReadHandle (std::string_view name) const noexcept -> data::ReadHandle |
Gets a read handle for the attribute with a specific name. | |
auto | attributeReadHandle (const utils::core::Uuid &uuid) const noexcept -> data::ReadHandle |
Gets a read handle for the attribute with a specific UUID. | |
auto | attributeReadHandle (const Attribute::Role &role) const noexcept -> data::ReadHandle |
Gets a read handle for a specific attribute role. | |
auto | attributeWriteHandle (const Attribute &attribute) noexcept -> data::WriteHandle |
Gets a write handle for a specific attribute. | |
auto | attributeWriteHandle (std::string_view name) noexcept -> data::WriteHandle |
Gets a write handle for the attribute with a specific name. | |
auto | attributeWriteHandle (const utils::core::Uuid &uuid) noexcept -> data::WriteHandle |
Gets a write handle for the attribute with a specific UUID. | |
auto | attributeWriteHandle (const Attribute::Role &role) noexcept -> data::WriteHandle |
Gets a write handle for a specific attribute role. | |
Global Lookup Functions | |
auto | findAttribute (std::string_view primaryKey) -> ElementAttribute |
Finds the attribute with a specific primary key in the model this element belongs to. | |
auto | findAttributeVerbose (std::string_view primaryKey) -> utils::eh::expected< ElementAttribute, std::string > |
Finds the attribute with a specific primary key in the model this element belongs to, returning an error message on error. | |
auto | findEvent (std::string_view primaryKey) const -> std::shared_ptr< const process::Event > |
Finds the event with a specific primary key in the model this element belongs to. | |
auto | findEvent (std::string_view primaryKey) -> std::shared_ptr< process::Event > |
Finds the event with a specific primary key in the model this element belongs to. | |
auto | findEventVerbose (std::string_view primaryKey) const -> utils::eh::expected< std::shared_ptr< const process::Event >, std::string > |
Finds the event with a specific primary key in the model this element belongs to, returning an error message on error. | |
auto | findEventVerbose (std::string_view primaryKey) -> utils::eh::expected< std::shared_ptr< process::Event >, std::string > |
Finds the event with a specific primary key in the model this element belongs to, returning an error message on error. | |
auto | findExtendedEvent (std::string_view primaryKey) const -> process::ExtendedEvent |
Finds the extended event with a specific primary key in the model this element belongs to. | |
auto | findExtendedEventVerbose (std::string_view primaryKey) const -> utils::eh::expected< process::ExtendedEvent, std::string > |
Finds the extended event with a specific primary key in the model this element belongs to, returning an error message on error. | |
auto | findTask (std::string_view primaryKey) const -> std::shared_ptr< const process::Task > |
Finds the task with a specific primary key in the model this element belongs to. | |
auto | findTask (std::string_view primaryKey) -> std::shared_ptr< process::Task > |
Finds the task with a specific primary key in the model this element belongs to. | |
auto | findTaskVerbose (std::string_view primaryKey) const -> utils::eh::expected< std::shared_ptr< const process::Task >, std::string > |
Finds the task with a specific primary key in the model this element belongs to, returning an error message on error. | |
auto | findTaskVerbose (std::string_view primaryKey) -> utils::eh::expected< std::shared_ptr< process::Task >, std::string > |
Finds the task with a specific primary key in the model this element belongs to, returning an error message on error. | |
auto | findElement (std::string_view primaryKey) const -> std::shared_ptr< const Element > |
Finds the element with a specific primary key in the model this element belongs to. | |
auto | findElement (std::string_view primaryKey) -> std::shared_ptr< Element > |
Finds the element with a specific primary key in the model this element belongs to. | |
auto | findElementVerbose (std::string_view primaryKey) const -> utils::eh::expected< std::shared_ptr< const Element >, std::string > |
Finds the element with a specific primary key in the model this element belongs to, returning an error message on error. | |
auto | findElementVerbose (std::string_view primaryKey) -> utils::eh::expected< std::shared_ptr< Element >, std::string > |
Finds the element with a specific primary key in the model this element belongs to, returning an error message on error. | |
auto | findElement (const utils::core::Uuid &uuid) const -> std::shared_ptr< const Element > |
Finds the element with a specific UUID in the model this element belongs to. | |
auto | findElement (const utils::core::Uuid &uuid) -> std::shared_ptr< Element > |
Finds the element with a specific UUID in the model this element belongs to. | |
auto | findElementVerbose (const utils::core::Uuid &uuid) const -> utils::eh::expected< std::shared_ptr< const Element >, std::string > |
Finds the element with a specific UUID in the model this element belongs to, returning an error message on error. | |
auto | findElementVerbose (const utils::core::Uuid &uuid) -> utils::eh::expected< std::shared_ptr< Element >, std::string > |
Finds the element with a specific UUID in the model this element belongs to, returning an error message on error. | |
Security Functions | |
auto | checkAccess (const security::Authorization &authorization, const security::Entitlement &entitlement) const -> bool |
Checks an authorization for a certain entitlement using the ACL for this element. | |
A generic element within a Xentara model.
|
pure virtual |
Virtual destructor.
|
noexcept |
Gets the attribute with a specific attribute role.
role | The role of the desired attribute |
|
noexcept |
Gets the attribute with a specific UUID.
uuid | The UUID of the desired attribute |
|
noexcept |
Gets the attribute with a specific name.
name | The name of the desired attribute, in UTF-8 encoding |
|
noexcept |
Gets a read handle for a specific attribute.
attribute | The desired attribute |
|
noexcept |
Gets a read handle for a specific attribute role.
role | The role of the desired attribute |
|
noexcept |
Gets a read handle for the attribute with a specific UUID.
uuid | The UUID of the desired attribute |
|
noexcept |
Gets a read handle for the attribute with a specific name.
name | The name of the desired attribute, in UTF-8 encoding |
auto xentara::model::Element::attributes | ( | ) | const -> std::vector< std::shared_ptr< const Attribute > > |
Returns a list of all the element’s attributes.
|
noexcept |
Gets a write handle for a specific attribute.
attribute | The desired attribute |
|
noexcept |
Gets a write handle for a specific attribute role.
role | The role of the desired attribute |
|
noexcept |
Gets a write handle for the attribute with a specific UUID.
uuid | The UUID of the desired attribute |
|
noexcept |
Gets a write handle for the attribute with a specific name.
name | The name of the desired attribute, in UTF-8 encoding |
|
noexcept |
Gets the element category of the element.
auto xentara::model::Element::checkAccess | ( | const security::Authorization & | authorization, |
const security::Entitlement & | entitlement | ||
) | const -> bool |
Checks an authorization for a certain entitlement using the ACL for this element.
|
noexcept |
Gets the child element with a specific name.
name | The name of the desired child element, in UTF-8 encoding |
|
noexcept |
Gets the child element with a specific name.
name | The name of the desired child element, in UTF-8 encoding |
auto xentara::model::Element::childElements | ( | ) | -> std::vector< std::shared_ptr< Element > > |
Returns a list of all the element’s children.
auto xentara::model::Element::childElements | ( | ) | const -> std::vector< std::shared_ptr< const Element > > |
Returns a list of all the element’s children.
|
noexcept |
Gets the event with a specific UUID.
This function only finds free-standing events of type process::Event. It does not find change events for attributes. To include change events for attributes in the search, use extendedEvent() instead.
uuid | The UUID of the desired event |
|
noexcept |
Gets the event with a specific UUID.
This function only finds free-standing events of type process::Event. It does not find change events for attributes. To include change events for attributes in the search, use extendedEvent() instead.
uuid | The UUID of the desired event |
|
noexcept |
Gets the event with a specific name.
This function only finds free-standing events of type process::Event. It does not find change events for attributes. To include change events for attributes in the search, use extendedEvent() instead.
name | The name of the desired event, in UTF-8 encoding |
|
noexcept |
Gets the event with a specific name.
This function only finds free-standing events of type process::Event. It does not find change events for attributes. To include change events for attributes in the search, use extendedEvent() instead.
name | The name of the desired event, in UTF-8 encoding |
auto xentara::model::Element::events | ( | ) | -> std::vector< std::shared_ptr< process::Event > > |
Returns a list of all the element’s events.
This function only returns free-standing events of type process::Event. It does not include change events for attributes. You can call attributes() separately to get a list attributes if you need to list the change events as well.
auto xentara::model::Element::events | ( | ) | const -> std::vector< std::shared_ptr< const process::Event > > |
Returns a list of all the element’s events.
This function only returns free-standing events of type process::Event. It does not include change events for attributes. You can call attributes() separately to get a list attributes if you need to list the change events as well.
|
noexcept |
Gets the event with a specific UUID, including change events for attributes.
This function will find any event with a specific name, including change events for attributes. This distuguished it from event(), which only finds free-standing events of type process::Event.
uuid | The UUID of the desired event |
|
noexcept |
Gets the event with a specific name, including change events for attributes.
This function will find any event with a specific name, including change events for attributes. This distuguished it from event(), which only finds free-standing events of type process::Event.
name | The name of the desired event, in UTF-8 encoding |
auto xentara::model::Element::findAttribute | ( | std::string_view | primaryKey | ) | -> ElementAttribute |
Finds the attribute with a specific primary key in the model this element belongs to.
primaryKey | The primary key of desired attribute, in UTF-8 encoding. |
auto xentara::model::Element::findAttributeVerbose | ( | std::string_view | primaryKey | ) | -> utils::eh::expected< ElementAttribute, std::string > |
Finds the attribute with a specific primary key in the model this element belongs to, returning an error message on error.
primaryKey | The primary key of desired attribute, in UTF-8 encoding. |
auto xentara::model::Element::findElement | ( | const utils::core::Uuid & | uuid | ) | -> std::shared_ptr< Element > |
Finds the element with a specific UUID in the model this element belongs to.
uuid | The UUID of desired element. |
auto xentara::model::Element::findElement | ( | const utils::core::Uuid & | uuid | ) | const -> std::shared_ptr< const Element > |
Finds the element with a specific UUID in the model this element belongs to.
uuid | The UUID of desired element. |
auto xentara::model::Element::findElement | ( | std::string_view | primaryKey | ) | -> std::shared_ptr< Element > |
Finds the element with a specific primary key in the model this element belongs to.
primaryKey | The primary key of desired element, in UTF-8 encoding. |
auto xentara::model::Element::findElement | ( | std::string_view | primaryKey | ) | const -> std::shared_ptr< const Element > |
Finds the element with a specific primary key in the model this element belongs to.
primaryKey | The primary key of desired element, in UTF-8 encoding. |
auto xentara::model::Element::findElementVerbose | ( | const utils::core::Uuid & | uuid | ) | -> utils::eh::expected< std::shared_ptr< Element >, std::string > |
Finds the element with a specific UUID in the model this element belongs to, returning an error message on error.
uuid | The UUID of desired element. |
auto xentara::model::Element::findElementVerbose | ( | const utils::core::Uuid & | uuid | ) | const -> utils::eh::expected< std::shared_ptr< const Element >, std::string > |
Finds the element with a specific UUID in the model this element belongs to, returning an error message on error.
uuid | The UUID of desired element. |
auto xentara::model::Element::findElementVerbose | ( | std::string_view | primaryKey | ) | -> utils::eh::expected< std::shared_ptr< Element >, std::string > |
Finds the element with a specific primary key in the model this element belongs to, returning an error message on error.
primaryKey | The primary key of desired element, in UTF-8 encoding. |
auto xentara::model::Element::findElementVerbose | ( | std::string_view | primaryKey | ) | const -> utils::eh::expected< std::shared_ptr< const Element >, std::string > |
Finds the element with a specific primary key in the model this element belongs to, returning an error message on error.
primaryKey | The primary key of desired element, in UTF-8 encoding. |
auto xentara::model::Element::findEvent | ( | std::string_view | primaryKey | ) | -> std::shared_ptr< process::Event > |
Finds the event with a specific primary key in the model this element belongs to.
This function only finds free-standing events of type process::Event. It does not find change events for attributes. To include change events for attributes in the search, use findExtendedEvent() instead.
primaryKey | The primary key of desired event, in UTF-8 encoding. |
auto xentara::model::Element::findEvent | ( | std::string_view | primaryKey | ) | const -> std::shared_ptr< const process::Event > |
Finds the event with a specific primary key in the model this element belongs to.
This function only finds free-standing events of type process::Event. It does not find change events for attributes. To include change events for attributes in the search, use findExtendedEvent() instead.
primaryKey | The primary key of desired event, in UTF-8 encoding. |
auto xentara::model::Element::findEventVerbose | ( | std::string_view | primaryKey | ) | -> utils::eh::expected< std::shared_ptr< process::Event >, std::string > |
Finds the event with a specific primary key in the model this element belongs to, returning an error message on error.
This function only finds free-standing events of type process::Event. It does not find change events for attributes. To include change events for attributes in the search, use findExtendedEvent() instead.
primaryKey | The primary key of desired event, in UTF-8 encoding. |
auto xentara::model::Element::findEventVerbose | ( | std::string_view | primaryKey | ) | const -> utils::eh::expected< std::shared_ptr< const process::Event >, std::string > |
Finds the event with a specific primary key in the model this element belongs to, returning an error message on error.
This function only finds free-standing events of type process::Event. It does not find change events for attributes. To include change events for attributes in the search, use findExtendedEvent() instead.
primaryKey | The primary key of desired event, in UTF-8 encoding. |
auto xentara::model::Element::findExtendedEvent | ( | std::string_view | primaryKey | ) | const -> process::ExtendedEvent |
Finds the extended event with a specific primary key in the model this element belongs to.
This function will find any event with a specific name, including change events for attributes. This distuguished it from findEvent(), which only finds free-standing events of type process::Event.
primaryKey | The primary key of desired event, in UTF-8 encoding. |
auto xentara::model::Element::findExtendedEventVerbose | ( | std::string_view | primaryKey | ) | const -> utils::eh::expected< process::ExtendedEvent, std::string > |
Finds the extended event with a specific primary key in the model this element belongs to, returning an error message on error.
This function will find any event with a specific name, including change events for attributes. This distuguished it from findEventVerbose(), which only finds free-standing events of type process::Event.
primaryKey | The primary key of desired event, in UTF-8 encoding. |
auto xentara::model::Element::findTask | ( | std::string_view | primaryKey | ) | -> std::shared_ptr< process::Task > |
Finds the task with a specific primary key in the model this element belongs to.
primaryKey | The primary key of desired task, in UTF-8 encoding. |
auto xentara::model::Element::findTask | ( | std::string_view | primaryKey | ) | const -> std::shared_ptr< const process::Task > |
Finds the task with a specific primary key in the model this element belongs to.
primaryKey | The primary key of desired task, in UTF-8 encoding. |
auto xentara::model::Element::findTaskVerbose | ( | std::string_view | primaryKey | ) | -> utils::eh::expected< std::shared_ptr< process::Task >, std::string > |
Finds the task with a specific primary key in the model this element belongs to, returning an error message on error.
primaryKey | The primary key of desired task, in UTF-8 encoding. |
auto xentara::model::Element::findTaskVerbose | ( | std::string_view | primaryKey | ) | const -> utils::eh::expected< std::shared_ptr< const process::Task >, std::string > |
Finds the task with a specific primary key in the model this element belongs to, returning an error message on error.
primaryKey | The primary key of desired task, in UTF-8 encoding. |
auto xentara::model::Element::forEachAttribute | ( | Callback && | callback | ) | const -> bool |
Iterates over all the element’s attributes.
This function takes a callback that will be called once for each attribute the element supports, in no particular order.
If the callback returns a value that can be converted to bool, then the return value is used to determine whether the iteration should be terminated early. If the callback returns a value that evaluates to true, then the iteration is stopped and the callback is not called again. If the return value evaluates to false, then iteration continues as normal.
callback | The callback that should be called for each attribute. |
auto xentara::model::Element::forEachChildElement | ( | Callback && | callback | ) | -> bool |
Iterates over all the child elements.
This function takes a callback that will be called once for each child element, in no particular order. The callback will be passed the UUID and the name of the task, as well as a pointer to the task itself.
If the callback returns a value that can be converted to bool, then the return value is used to determine whether the iteration should be terminated early. If the callback returns a value that evaluates to true, then the iteration is stopped and the callback is not called again. If the return value evaluates to false, then iteration continues as normal.
callback | The callback that should be called for each child element. |
auto xentara::model::Element::forEachChildElement | ( | Callback && | callback | ) | const -> bool |
Iterates over all the child elements.
This function takes a callback that will be called once for each child element, in no particular order. The callback will be passed the UUID and the name of the task, as well as a pointer to the task itself.
If the callback returns a value that can be converted to bool, then the return value is used to determine whether the iteration should be terminated early. If the callback returns a value that evaluates to true, then the iteration is stopped and the callback is not called again. If the return value evaluates to false, then iteration continues as normal.
callback | The callback that should be called for each child element. |
auto xentara::model::Element::forEachEvent | ( | Callback && | callback | ) | -> bool |
Iterates over all the element’s events.
This function takes a callback that will be called once for each event the element supports, in no particular order. The callable will be passed the UUID and the name of the event, as well as a pointer to the event itself.
If the callback returns a value that can be converted to bool, then the return value is used to determine whether the iteration should be terminated early. If the callback returns a value that evaluates to true, then the iteration is stopped and the callback is not called again. If the return value evaluates to false, then iteration continues as normal.
This function only iterates over free-standing events of type process::Event. It does not include change events for attributes. You can call forEachAttribute() separately if you need to iterate over the the attribute change events as well.
callback | The callback that should be called for each event. |
auto xentara::model::Element::forEachEvent | ( | Callback && | callback | ) | const -> bool |
Iterates over all the element’s events.
This function takes a callback that will be called once for each event the element supports, in no particular order. The callable will be passed the UUID and the name of the event, as well as a pointer to the event itself.
If the callback returns a value that can be converted to bool, then the return value is used to determine whether the iteration should be terminated early. If the callback returns a value that evaluates to true, then the iteration is stopped and the callback is not called again. If the return value evaluates to false, then iteration continues as normal.
This function only iterates over free-standing events of type process::Event. It does not include change events for attributes. You can call forEachAttribute() separately if you need to iterate over the the attribute change events as well.
callback | The callback that should be called for each event. |
auto xentara::model::Element::forEachTask | ( | Callback && | callback | ) | -> bool |
Iterates over all the element’s tasks.
This function takes a callback that will be called once for each event the element supports, in no particular order. The callback will be passed the UUID and the name of the event, as well as a pointer to the event itself.
If the callback returns a value that can be converted to bool, then the return value is used to determine whether the iteration should be terminated early. If the callback returns a value that evaluates to true, then the iteration is stopped and the callback is not called again. If the return value evaluates to false, then iteration continues as normal.
callback | The callback that should be called for each event. |
auto xentara::model::Element::forEachTask | ( | Callback && | callback | ) | const -> bool |
Iterates over all the element’s tasks.
This function takes a callback that will be called once for each event the element supports, in no particular order. The callback will be passed the UUID and the name of the event, as well as a pointer to the event itself.
If the callback returns a value that can be converted to bool, then the return value is used to determine whether the iteration should be terminated early. If the callback returns a value that evaluates to true, then the iteration is stopped and the callback is not called again. If the return value evaluates to false, then iteration continues as normal.
callback | The callback that should be called for each event. |
|
noexcept |
Gets the name of the element.
auto xentara::model::Element::parentElement | ( | ) | -> std::shared_ptr< Element > |
Returns the element’s parent.
auto xentara::model::Element::parentElement | ( | ) | const -> std::shared_ptr< const Element > |
Returns the element’s parent.
|
noexcept |
Gets the primary key of the element.
auto xentara::model::Element::rootElement | ( | ) | -> std::shared_ptr< Element > |
Returns the invisible root element of the model this element belongs to.
The invisible root element is the parent element of all top-level elements in the model. It does not have a name, a primary key, attributes, events, or tasks. The only thing the invisible root element can be used for is accessing its children using childElements() or forEachChildElement(), and getting its uuid().
auto xentara::model::Element::rootElement | ( | ) | const -> std::shared_ptr< const Element > |
Returns the invisible root element of the model this element belongs to.
The invisible root element is the parent element of all top-level elements in the model. It does not have a name, a primary key, attributes, events, or tasks. The only thing the invisible root element can be used for is accessing its children using childElements() or forEachChildElement(), and getting its uuid().
auto xentara::model::Element::subElementPrimaryKey | ( | std::string_view | subElementName | ) | const -> std::string |
Gets the primary key of a sub element (attribute, event, task, or child element)
subElementName | The name of the sub element, in UTF-8 encoding. |
|
noexcept |
Gets the task with a specific UUID.
uuid | The UUID of the desired task |
|
noexcept |
Gets the task with a specific UUID.
uuid | The UUID of the desired task |
|
noexcept |
Gets the task with a specific name.
name | The name of the desired task, in UTF-8 encoding |
|
noexcept |
Gets the task with a specific name.
name | The name of the desired task, in UTF-8 encoding |
auto xentara::model::Element::tasks | ( | ) | -> std::vector< std::shared_ptr< process::Task > > |
Returns a list of all the element’s tasks.
auto xentara::model::Element::tasks | ( | ) | const -> std::vector< std::shared_ptr< const process::Task > > |
Returns a list of all the element’s tasks.
|
noexcept |
Gets the type of the element.
|
noexcept |
Gets the UUID of the element.