|
xentara-workbench-plugin v1.0.1
The Xentara Workbench Plugin Framework
|
A reference to an event belonging to a Xentara element. More...
#include <xentara/workbench/process/EventReference.hpp>
Inheritance diagram for xentara::workbench::process::EventReference:Classes | |
| class | ImportReference |
| A light-weight object that can be used to generate event references when importing elements using an [import button](bindings::ImportButton]. More... | |
Public Member Functions | |
| EventReference (EventSearchOptions options={}) | |
| Constructor. | |
| EventReference (const EventReference &other)=default | |
| Copy constructor. | |
| EventReference (EventReference &&other) noexcept=default | |
| Move constructor. | |
| EventReference (const EventReference &other, EventSearchOptions options) noexcept | |
| Copy constructor that copies the referred event but uses explicit options. | |
| EventReference (EventReference &&other, EventSearchOptions options) | |
| Move constructor that moves the referred event but uses explicit options. | |
| auto | operator= (const EventReference &rhs) -> EventReference & |
| Assignment operator. | |
| auto | operator= (EventReference &&rhs) noexcept -> EventReference & |
| Move-Assignment operator. | |
| internal | operator bool () const noexcept |
| Checks whether the reference points to anything. | |
| auto | event () const -> utils::eh::expected< process::Event, ui::String > |
| Gets the event. | |
| auto | primaryKey () const -> std::string |
| Gets the primary key of the event. | |
| auto | save (utils::json::encoder::Value &jsonValue) const -> void |
| Writes the reference to a JSON value. | |
| auto | saveTo (utils::json::encoder::Object &jsonObject, std::string_view name) const -> void |
| Adds the reference to a JSON object. | |
| auto | saveTo (utils::json::encoder::Array &jsonArray) const -> void |
| Writes the reference to a JSON array. | |
Public Member Functions inherited from xentara::workbench::bindings::CrossReferenceController | |
| CrossReferenceController () noexcept=default | |
| Default constructor. | |
| CrossReferenceController (const CrossReferenceController &other) | |
| Copy constructor. | |
| CrossReferenceController (CrossReferenceController &&other) noexcept | |
| Move constructor. | |
| virtual | ~CrossReferenceController ()=0 |
| Virtual destructor. | |
| auto | operator= (const CrossReferenceController &rhs) -> CrossReferenceController & |
| Copy assignment operator. | |
| auto | operator= (CrossReferenceController &&rhs) noexcept -> CrossReferenceController & |
| Move assignment operator that does not actually assign anything. | |
| auto | setReferringController (PropertyController &referringController) -> void |
| Sets the referring controller, that is the property controller that contains this object. | |
| auto | referringController () const -> PropertyController * |
| Gets the referring controller. | |
A reference to an event belonging to a Xentara element.
|
explicit |
Constructor.
| options | The options to use when resolving the event |
|
default |
Copy constructor.
|
defaultnoexcept |
Move constructor.
|
noexcept |
Copy constructor that copies the referred event but uses explicit options.
| other | The reference to copy. Only the referred event is copied, the options are set to options specified in the options parameter. |
| options | The options to use when resolving the event |
| xentara::workbench::process::EventReference::EventReference | ( | EventReference && | other, |
| EventSearchOptions | options | ||
| ) |
Move constructor that moves the referred event but uses explicit options.
| other | The reference to move. Only the referred event is moved, the options are set to options specified in the options parameter. |
| options | The options to use when resolving the event |
| auto xentara::workbench::process::EventReference::event | ( | ) | const -> utils::eh::expected<process::Event, ui::String> |
Gets the event.
|
explicitnoexcept |
Checks whether the reference points to anything.
| auto xentara::workbench::process::EventReference::operator= | ( | const EventReference & | rhs | ) | -> EventReference & |
Assignment operator.
| rhs | The reference to assign. Only the referred event is copied, the options are not modified. |
|
noexcept |
Move-Assignment operator.
| rhs | The reference to assign. Only the referred event is moved, the options are not modified. |
| auto xentara::workbench::process::EventReference::primaryKey | ( | ) | const -> std::string |
Gets the primary key of the event.
| auto xentara::workbench::process::EventReference::save | ( | utils::json::encoder::Value & | jsonValue | ) | const -> void |
Writes the reference to a JSON value.
| jsonValue | The value |
| auto xentara::workbench::process::EventReference::saveTo | ( | utils::json::encoder::Array & | jsonArray | ) | const -> void |
Writes the reference to a JSON array.
| jsonArray | The array |
| auto xentara::workbench::process::EventReference::saveTo | ( | utils::json::encoder::Object & | jsonObject, |
| std::string_view | name | ||
| ) | const -> void |
Adds the reference to a JSON object.
| jsonObject | The object |
| name | The member name |