BPMN-OS
BPMN for optimization and simulation
Loading...
Searching...
No Matches
tAttribute.cpp
Go to the documentation of this file.
1#include "tAttribute.h"
2
3using namespace XML;
4using namespace XML::bpmnos;
5
6tAttribute::tAttribute(const Namespace& xmlns, const ClassName& className, const xercesc::DOMElement* element, const Attributes& defaultAttributes) :
7 XMLObject(xmlns, className, element, defaultAttributes)
8 , id(getRequiredAttributeByName("id"))
9 , name(getRequiredAttributeByName("name"))
10 , type(getRequiredAttributeByName("type"))
11 , objective(getOptionalAttributeByName("objective"))
12 , weight(getOptionalAttributeByName("weight"))
13{
14}
A class representing a node in an XML-tree.
Definition XMLObject.h:115
tAttribute(const Namespace &xmlns, const ClassName &className, const xercesc::DOMElement *element, const Attributes &defaultAttributes)
Definition tAttribute.cpp:6
The XML::bpmnos namespace contains classes from the following XML-schema(s): xsd/BPMNOS....
Definition attribute.h:13
The XML namespace contains classes representing XML-nodes defined in given XML-schema(s).
Definition bpmn++.h:18
std::string Namespace
Definition bpmn++.h:25
std::string ClassName
Definition bpmn++.h:22
std::vector< Attribute > Attributes
Definition bpmn++.h:81