Base class for all core BPMN elements.
More...
The class allows to access the underlying XML element and may have associated extension elements.
Definition at line 16290 of file bpmn++.h.
#include <bpmn++.h>
|
| | BaseElement (XML::bpmn::tBaseElement *element) |
| | Constructs a BaseElement object representing a BPMN element.
|
| |
| template<typename T > |
| T * | is () |
| | Attempts to return the element in the specified type T.
|
| |
| template<typename T > |
| const T * | is () const |
| | Attempts to return the element in the specified type T.
|
| |
| template<typename T = XML::bpmn::tBaseElement> |
| T * | get () |
| | Casts the element to the specified type T.
|
| |
| template<typename T = XML::bpmn::tBaseElement> |
| const T * | get () const |
| | Casts the element to the specified type T.
|
| |
| virtual | ~Element ()=default |
| |
| template<typename T > |
| T * | represents () |
| | Attempts to cast the element to the specified type T.
|
| |
| template<typename T > |
| const T * | represents () const |
| | Attempts to cast the element to the specified type T.
|
| |
| template<typename T > |
| T * | as () |
| | Casts the element to the specified type T.
|
| |
| template<typename T > |
| const T * | as () const |
| | Casts the element to the specified type T.
|
| |
◆ BaseElement()
◆ get() [1/2]
template<typename T = XML::bpmn::tBaseElement>
| T * BPMN::BaseElement::get |
( |
| ) |
|
|
inline |
- Returns
- A pointer to casted object
- Exceptions
-
| std::runtime_error | if the cast fails |
Definition at line 16322 of file bpmn++.h.
◆ get() [2/2]
template<typename T = XML::bpmn::tBaseElement>
| const T * BPMN::BaseElement::get |
( |
| ) |
const |
|
inline |
- Returns
- A pointer to casted object
- Exceptions
-
| std::runtime_error | if the cast fails |
Definition at line 16335 of file bpmn++.h.
◆ is() [1/2]
template<typename T >
| T * BPMN::BaseElement::is |
( |
| ) |
|
|
inline |
- Returns
- A pointer to casted object or
nullptr if the cast fails
Definition at line 16305 of file bpmn++.h.
◆ is() [2/2]
template<typename T >
| const T * BPMN::BaseElement::is |
( |
| ) |
const |
|
inline |
- Returns
- A pointer to casted object or
nullptr if the cast fails
Definition at line 16313 of file bpmn++.h.
◆ element
◆ extensionElements
◆ id
| std::string BPMN::BaseElement::id |
The documentation for this class was generated from the following file: