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