bpmn++
A BPMN parser library, written in C++
Loading...
Searching...
No Matches
XML::bpmn::tDefinitions Class Reference

Detailed Description

Overview:

Members:

  • import : tImport [0..*]
  • extension : tExtension [0..*]
  • rootElement : tRootElement [0..*]
  • process : tProcess [0..*]
  • bpmndi_BPMNDiagram : BPMNDiagram [0..*]
  • relationship : tRelationship [0..*]
  • id : ID [0..1]
  • name : string [0..1]
  • targetNamespace : anyURI [1..1]
  • expressionLanguage : anyURI [0..1]
  • typeLanguage : anyURI [0..1]
  • exporter : string [0..1]
  • exporterVersion : string [0..1]

Automatically generated by schematic++ v0.8.0 (https://github.com/rajgoel/schematicpp)

Definition at line 50 of file tDefinitions.h.

#include <tDefinitions.h>

Inheritance diagram for XML::bpmn::tDefinitions:

Public Attributes

std::vector< std::reference_wrapper< tImport > > import
std::vector< std::reference_wrapper< tExtension > > extension
std::vector< std::reference_wrapper< tRootElement > > rootElement
std::vector< std::reference_wrapper< tProcess > > process
std::vector< std::reference_wrapper< BPMNDiagram > > bpmndi_BPMNDiagram
std::vector< std::reference_wrapper< tRelationship > > relationship
std::optional< std::reference_wrapper< Attribute > > id
 Attribute value can be expected to be of type 'std::string'.
std::optional< std::reference_wrapper< Attribute > > name
 Attribute value can be expected to be of type 'std::string'.
AttributetargetNamespace
 Attribute value can be expected to be of type 'std::string'.
std::optional< std::reference_wrapper< Attribute > > expressionLanguage
 Attribute value can be expected to be of type 'std::string'.
std::optional< std::reference_wrapper< Attribute > > typeLanguage
 Attribute value can be expected to be of type 'std::string'.
std::optional< std::reference_wrapper< Attribute > > exporter
 Attribute value can be expected to be of type 'std::string'.
std::optional< std::reference_wrapper< Attribute > > exporterVersion
 Attribute value can be expected to be of type 'std::string'.
Public Attributes inherited from XML::XMLObject
Namespace xmlns
const ClassName className
Namespace prefix
ElementName elementName
TextContent textContent
 Textual content of XML element without children.
Children children
 Child nodes of the XML element.
Attributes attributes

Static Public Attributes

static const Attributes defaults
 default attributes to be used if they are not explicitly provided
Static Public Attributes inherited from XML::XMLObject
static const Attributes defaults = {}
 Attributes of the XML element.

Protected Member Functions

 tDefinitions (const Namespace &xmlns, const ClassName &className, const xercesc::DOMElement *element, const Attributes &defaultAttributes)
Protected Member Functions inherited from XML::XMLObject
 XMLObject (const Namespace &xmlns, const ClassName &className, const xercesc::DOMElement *element, const Attributes &defaultAttributes)

Friends

template<typename T>
XMLObjectXML::createInstance (const Namespace &xmlns, const ClassName &className, const xercesc::DOMElement *element)

Additional Inherited Members

Public Member Functions inherited from XML::XMLObject
virtual ~XMLObject ()
template<typename T, typename Self>
auto * is (this Self &&self)
 Returns a pointer of type T of the object, const-qualified to match the receiver.
template<typename T, typename Self>
auto * get (this Self &&self)
 Attempt to cast the current instance to the specified type T.
template<typename T, typename Self>
auto find (this Self &&self)
 Find all descendants of type T.
std::string stringify () const
 Convert the XMLObject and its children to a string representation.
std::string format (std::string indentation="\t", unsigned int depth=0) const
 Creates formatted string representing the XMLObject including its children.
template<typename T, typename Self>
auto & getRequiredChild (this Self &&self)
 Get a required child of type T.
template<typename T, typename Self>
auto getOptionalChild (this Self &&self)
 Get an optional child of type T.
template<typename T, typename Self>
auto getChildren (this Self &&self)
 Get all children of type T.
template<typename Self>
auto & getRequiredChildByName (this Self &&self, const ElementName &name)
 Get a required child with the specified element name.
template<typename Self>
auto getOptionalChildByName (this Self &&self, const ElementName &name)
 Get the optional child with the specified element name.
template<typename Self>
auto getChildrenByName (this Self &&self, const ElementName &name)
 Get all children with the specified element name.
template<typename Self>
auto & getRequiredAttributeByName (this Self &&self, const AttributeName &name)
 Get a required attribute with the specified attribute name.
template<typename Self>
auto getOptionalAttributeByName (this Self &&self, const AttributeName &name)
 Get an optional attribute with the specified attribute name.
Static Public Member Functions inherited from XML::XMLObject
static XMLObjectcreateFromStream (std::istream &xmlStream)
 Create an XMLObject from the input stream.
static XMLObjectcreateFromString (const std::string &xmlString)
 Create an XMLObject from a string representation of XML.
static XMLObjectcreateFromFile (const std::string &filename)
 Create an XMLObject from an XML file.
Static Protected Member Functions inherited from XML::XMLObject
static XMLObjectcreateObject (const xercesc::DOMElement *element)
Static Protected Attributes inherited from XML::XMLObject
static Factory factory

Constructor & Destructor Documentation

◆ tDefinitions()

tDefinitions::tDefinitions ( const Namespace & xmlns,
const ClassName & className,
const xercesc::DOMElement * element,
const Attributes & defaultAttributes )
protected

Definition at line 6 of file tDefinitions.cpp.

◆ XML::createInstance

template<typename T>
XMLObject * XML::createInstance ( const Namespace & xmlns,
const ClassName & className,
const xercesc::DOMElement * element )
friend

Member Data Documentation

◆ bpmndi_BPMNDiagram

std::vector< std::reference_wrapper<BPMNDiagram> > XML::bpmn::tDefinitions::bpmndi_BPMNDiagram

Definition at line 72 of file tDefinitions.h.

◆ defaults

const Attributes XML::bpmn::tDefinitions::defaults
inlinestatic
Initial value:
= {
{ .xmlns = "http://www.omg.org/spec/BPMN/20100524/MODEL", .prefix = "" , .name = "expressionLanguage", .value = Value(std::string("http://www.w3.org/1999/XPath"))},
{ .xmlns = "http://www.omg.org/spec/BPMN/20100524/MODEL", .prefix = "" , .name = "typeLanguage", .value = Value(std::string("http://www.w3.org/2001/XMLSchema"))}
}
A struct representing the value of an XML-node attribute.
Definition XMLObject.h:50

Definition at line 63 of file tDefinitions.h.

◆ exporter

std::optional< std::reference_wrapper<Attribute> > XML::bpmn::tDefinitions::exporter

Definition at line 79 of file tDefinitions.h.

◆ exporterVersion

std::optional< std::reference_wrapper<Attribute> > XML::bpmn::tDefinitions::exporterVersion

Definition at line 80 of file tDefinitions.h.

◆ expressionLanguage

std::optional< std::reference_wrapper<Attribute> > XML::bpmn::tDefinitions::expressionLanguage

Definition at line 77 of file tDefinitions.h.

◆ extension

std::vector< std::reference_wrapper<tExtension> > XML::bpmn::tDefinitions::extension

Definition at line 69 of file tDefinitions.h.

◆ id

std::optional< std::reference_wrapper<Attribute> > XML::bpmn::tDefinitions::id

Definition at line 74 of file tDefinitions.h.

◆ import

std::vector< std::reference_wrapper<tImport> > XML::bpmn::tDefinitions::import

Definition at line 68 of file tDefinitions.h.

◆ name

std::optional< std::reference_wrapper<Attribute> > XML::bpmn::tDefinitions::name

Definition at line 75 of file tDefinitions.h.

◆ process

std::vector< std::reference_wrapper<tProcess> > XML::bpmn::tDefinitions::process

Definition at line 71 of file tDefinitions.h.

◆ relationship

std::vector< std::reference_wrapper<tRelationship> > XML::bpmn::tDefinitions::relationship

Definition at line 73 of file tDefinitions.h.

◆ rootElement

std::vector< std::reference_wrapper<tRootElement> > XML::bpmn::tDefinitions::rootElement

Definition at line 70 of file tDefinitions.h.

◆ targetNamespace

Attribute& XML::bpmn::tDefinitions::targetNamespace

Definition at line 76 of file tDefinitions.h.

◆ typeLanguage

std::optional< std::reference_wrapper<Attribute> > XML::bpmn::tDefinitions::typeLanguage

Definition at line 78 of file tDefinitions.h.


The documentation for this class was generated from the following files: