BPMN-OS
BPMN for optimization and simulation
Loading...
Searching...
No Matches
tSignal.h
Go to the documentation of this file.
1#ifndef XML_bpmnos_tSignal_H
2#define XML_bpmnos_tSignal_H
3#include <memory>
4#include <optional>
5#include <vector>
6
7#include "../XMLObject.h"
8#include "tContent.h"
9
10/**
11 * @brief The `XML::bpmnos` namespace contains classes from the following XML-schema(s): @ref xsd/BPMNOS.xsd.
12 */
13namespace XML::bpmnos {
14
15class tContent;
16
17/**
18 * Overview:
19 * - Element name: tSignal
20 * - XML-Schema: xsd/BPMNOS.xsd
21 * - XML-Namespace: https://bpmnos.telematique.eu
22 *
23 * Members:
24 * - name : string [1..1]
25 * - content : tContent [0..*]
26 *
27 * Automatically generated by schematic++ v0.4.0 (https://github.com/rajgoel/schematicpp)
28 */
29class tSignal : public XMLObject {
30 template<typename T> friend XMLObject* ::XML::createInstance(const Namespace& xmlns, const ClassName& className, const xercesc::DOMElement* element);
31private:
32 static bool registerClass() {
33 XMLObject::factory["https://bpmnos.telematique.eu:tSignal"] = &createInstance<tSignal>; // register function in factory
34 return true;
35 };
36 inline static bool registered = registerClass();
37protected:
38 tSignal(const Namespace& xmlns, const ClassName& className, const xercesc::DOMElement* element, const Attributes& defaultAttributes);
39
40public:
41 /// default attributes to be used if they are not explicitly provided
42 inline static const Attributes defaults = {
43 };
44
45 Attribute& name; ///< Attribute value can be expected to be of type 'std::string'
46 std::vector< std::reference_wrapper<tContent> > content;
47};
48
49} // namespace XML::bpmnos
50
51#endif // XML_bpmnos_tSignal_H
A class representing a node in an XML-tree.
Definition XMLObject.h:115
const ClassName className
Definition bpmn++.h:244
static Factory factory
Definition bpmn++.h:156
Namespace xmlns
Definition bpmn++.h:243
static const Attributes defaults
default attributes to be used if they are not explicitly provided
Definition tSignal.h:42
friend XMLObject * XML::createInstance(const Namespace &xmlns, const ClassName &className, const xercesc::DOMElement *element)
std::vector< std::reference_wrapper< tContent > > content
Definition tSignal.h:46
Attribute & name
Attribute value can be expected to be of type 'std::string'.
Definition tSignal.h:45
tSignal(const Namespace &xmlns, const ClassName &className, const xercesc::DOMElement *element, const Attributes &defaultAttributes)
Definition tSignal.cpp:6
The XML::bpmnos namespace contains classes from the following XML-schema(s): xsd/BPMNOS....
Definition attribute.h:13
std::string Namespace
Definition bpmn++.h:25
std::string ClassName
Definition bpmn++.h:22
XMLObject * createInstance(const Namespace &xmlns, const ClassName &className, const xercesc::DOMElement *element)
Template function used to store in factory.
Definition bpmn++.h:85
std::vector< Attribute > Attributes
Definition bpmn++.h:81
A struct representing an attribute of an XML-node.
Definition XMLObject.h:73