bpmn++
A BPMN parser library, written in C++
Loading...
Searching...
No Matches
tCatchEvent.h
Go to the documentation of this file.
1#ifndef XML_bpmn_tCatchEvent_H
2#define XML_bpmn_tCatchEvent_H
3#include <memory>
4#include <optional>
5#include <vector>
6
7#include "../XMLObject.h"
8#include "tEvent.h"
9#include "tDataOutput.h"
11#include "tOutputSet.h"
12#include "tEventDefinition.h"
13
14/**
15 * @brief The `XML::bpmn` namespace contains classes from the following XML-schema(s): @ref xsd/DC.xsd, @ref xsd/DI.xsd, @ref xsd/BPMNDI.xsd, @ref xsd/Semantic.xsd, @ref xsd/BPMN20.xsd.
16 */
17namespace XML::bpmn {
18
19class tDataOutput;
20class tDataOutputAssociation;
21class tOutputSet;
22class tEventDefinition;
23
24/**
25 * Overview:
26 * - Element name: tCatchEvent
27 * - XML-Schema: xsd/Semantic.xsd
28 * - XML-Namespace: http://www.omg.org/spec/BPMN/20100524/MODEL
29 *
30 * Members:
31 * - dataOutput : tDataOutput [0..*]
32 * - dataOutputAssociation : tDataOutputAssociation [0..*]
33 * - outputSet : tOutputSet [0..1]
34 * - eventDefinition : tEventDefinition [0..*]
35 * - eventDefinitionRef : QName [0..*]
36 * - parallelMultiple : boolean [0..1]
37 * - property : tProperty [0..*] (from: tEvent)
38 * - incoming : QName [0..*] (from: tFlowNode)
39 * - outgoing : QName [0..*] (from: tFlowNode)
40 * - auditing : tAuditing [0..1] (from: tFlowElement)
41 * - monitoring : tMonitoring [0..1] (from: tFlowElement)
42 * - categoryValueRef : QName [0..*] (from: tFlowElement)
43 * - name : string [0..1] (from: tFlowElement)
44 * - documentation : tDocumentation [0..*] (from: tBaseElement)
45 * - extensionElements : tExtensionElements [0..1] (from: tBaseElement)
46 * - id : ID [0..1] (from: tBaseElement)
47 *
48 * Automatically generated by schematic++ v0.6.0 (https://github.com/rajgoel/schematicpp)
49 */
50class tCatchEvent : public tEvent {
51 template<typename T> friend XMLObject* ::XML::createInstance(const Namespace& xmlns, const ClassName& className, const xercesc::DOMElement* element);
52private:
53 static bool registerClass() {
54 XMLObject::factory["http://www.omg.org/spec/BPMN/20100524/MODEL:tCatchEvent"] = &createInstance<tCatchEvent>; // register function in factory
55 return true;
56 };
57 inline static bool registered = registerClass();
58protected:
59 tCatchEvent(const Namespace& xmlns, const ClassName& className, const xercesc::DOMElement* element, const Attributes& defaultAttributes);
60
61public:
62 /// default attributes to be used if they are not explicitly provided
63 inline static const Attributes defaults = {
64 { .xmlns = "http://www.omg.org/spec/BPMN/20100524/MODEL", .prefix = "" , .name = "parallelMultiple", .value = Value(std::string("false"))}
65 };
66
67 std::vector< std::reference_wrapper<tDataOutput> > dataOutput;
68 std::vector< std::reference_wrapper<tDataOutputAssociation> > dataOutputAssociation;
69 std::optional< std::reference_wrapper<tOutputSet> > outputSet;
70 std::vector< std::reference_wrapper<tEventDefinition> > eventDefinition;
71 std::vector< std::reference_wrapper<XMLObject> > eventDefinitionRef;
72 std::optional< std::reference_wrapper<Attribute> > parallelMultiple; ///< Attribute value can be expected to be of type 'bool'
73};
74
75} // namespace XML::bpmn
76
77#endif // XML_bpmn_tCatchEvent_H
A class representing a node in an XML-tree.
Definition XMLObject.h:115
const ClassName className
Definition XMLObject.h:243
static Factory factory
Definition XMLObject.h:155
Namespace xmlns
Definition XMLObject.h:242
std::vector< std::reference_wrapper< tDataOutput > > dataOutput
Definition tCatchEvent.h:67
std::optional< std::reference_wrapper< tOutputSet > > outputSet
Definition tCatchEvent.h:69
static const Attributes defaults
default attributes to be used if they are not explicitly provided
Definition tCatchEvent.h:63
std::vector< std::reference_wrapper< XMLObject > > eventDefinitionRef
Definition tCatchEvent.h:71
std::vector< std::reference_wrapper< tDataOutputAssociation > > dataOutputAssociation
Definition tCatchEvent.h:68
std::optional< std::reference_wrapper< Attribute > > parallelMultiple
Attribute value can be expected to be of type 'bool'.
Definition tCatchEvent.h:72
std::vector< std::reference_wrapper< tEventDefinition > > eventDefinition
Definition tCatchEvent.h:70
The XML::bpmn namespace contains classes from the following XML-schema(s): xsd/DC....
std::string Namespace
Definition XMLObject.h:24
std::vector< Attribute > Attributes
Definition XMLObject.h:80
std::string ClassName
Definition XMLObject.h:21
XMLObject * createInstance(const Namespace &xmlns, const ClassName &className, const xercesc::DOMElement *element)
Template function used to store in factory.
Definition XMLObject.h:84
A struct representing the value of an XML-node attribute.
Definition XMLObject.h:48