BPMN-OS
BPMN for optimization and simulation
Loading...
Searching...
No Matches
tRestriction.h
Go to the documentation of this file.
1#ifndef XML_bpmnos_tRestriction_H
2#define XML_bpmnos_tRestriction_H
3#include <memory>
4#include <optional>
5#include <vector>
6
7#include "../XMLObject.h"
8#include "tRestrictionScope.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
16
17/**
18 * Overview:
19 * - Element name: tRestriction
20 * - XML-Schema: xsd/BPMNOS.xsd
21 * - XML-Namespace: https://bpmnos.telematique.eu
22 *
23 * Members:
24 * - id : ID [1..1]
25 * - scope : tRestrictionScope [0..1]
26 * - expression : string [1..1]
27 *
28 * Automatically generated by schematic++ v0.4.0 (https://github.com/rajgoel/schematicpp)
29 */
30class tRestriction : public XMLObject {
31 template<typename T> friend XMLObject* ::XML::createInstance(const Namespace& xmlns, const ClassName& className, const xercesc::DOMElement* element);
32private:
33 static bool registerClass() {
34 XMLObject::factory["https://bpmnos.telematique.eu:tRestriction"] = &createInstance<tRestriction>; // register function in factory
35 return true;
36 };
37 inline static bool registered = registerClass();
38protected:
39 tRestriction(const Namespace& xmlns, const ClassName& className, const xercesc::DOMElement* element, const Attributes& defaultAttributes);
40
41 friend class tRestrictions;
42
43public:
44 /// default attributes to be used if they are not explicitly provided
45 inline static const Attributes defaults = {
46 { .xmlns = "https://bpmnos.telematique.eu", .prefix = "" , .name = "scope", .value = Value(std::string("full"))}
47 };
48
49 Attribute& id; ///< Attribute value can be expected to be of type 'std::string'
50 std::optional< std::reference_wrapper<Attribute> > scope; ///< Attribute value can be expected to be of type 'std::string'
51 Attribute& expression; ///< Attribute value can be expected to be of type 'std::string'
52};
53
54} // namespace XML::bpmnos
55
56#endif // XML_bpmnos_tRestriction_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
friend XMLObject * XML::createInstance(const Namespace &xmlns, const ClassName &className, const xercesc::DOMElement *element)
std::optional< std::reference_wrapper< Attribute > > scope
Attribute value can be expected to be of type 'std::string'.
Attribute & id
Attribute value can be expected to be of type 'std::string'.
tRestriction(const Namespace &xmlns, const ClassName &className, const xercesc::DOMElement *element, const Attributes &defaultAttributes)
static const Attributes defaults
default attributes to be used if they are not explicitly provided
Attribute & expression
Attribute value can be expected to be of type 'std::string'.
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
A struct representing the value of an XML-node attribute.
Definition XMLObject.h:48
std::string tRestrictionScope