xentara-plugin v1.2
The Xentara Plugin Framework
|
A generic element within a Xentara model. More...
#include <model/GenericElement.hpp>
Public Member Functions | |
virtual | ~GenericElement ()=0 |
Virtual destructor. | |
auto | xentara_cat_string () const -> __opaque_type__ |
This is a helper function that enables using this class with utils::string::cat() | |
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 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 Attribute::Role &role) noexcept -> data::WriteHandle |
Gets a write handle for a specific attribute role. | |
auto | name () const -> std::string |
Gets the name of the element. | |
auto | primaryKey () const -> std::string |
Gets the primary key of the element. | |
auto | subElementPrimaryKey (std::string_view subElementName) const -> std::string |
Gets the primary key of a sub element. | |
auto | uuid () const -> utils::core::Uuid |
Gets the UUID of the element. | |
auto | childElements () const -> std::vector< std::shared_ptr< GenericElement > > |
Returns a list of all the the element's children. | |
A generic element within a Xentara model.
|
pure virtual |
Virtual destructor.
|
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 name.
name | The name of the desired attribute, in UTF-8 encoding |
|
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 name.
name | The name of the desired attribute, in UTF-8 encoding |
auto xentara::model::GenericElement::childElements | ( | ) | const -> std::vector< std::shared_ptr< GenericElement > > |
Returns a list of all the the element's children.
auto xentara::model::GenericElement::name | ( | ) | const -> std::string |
Gets the name of the element.
auto xentara::model::GenericElement::primaryKey | ( | ) | const -> std::string |
Gets the primary key of the element.
auto xentara::model::GenericElement::subElementPrimaryKey | ( | std::string_view | subElementName | ) | const -> std::string |
Gets the primary key of a sub element.
subElementName | The name of the sub element, in UTF-8 encoding. |
auto xentara::model::GenericElement::uuid | ( | ) | const -> utils::core::Uuid |
Gets the UUID of the element.
auto xentara::model::GenericElement::xentara_cat_string | ( | ) | const -> __opaque_type__ |
This is a helper function that enables using this class with utils::string::cat()
utils::string::cat() will insert the primary key of the element into the string.