ADTF
Loading...
Searching...
No Matches
ddl::mapping::MappingConfigurationToXMLFactory< DomNodeType > Struct Template Reference

Template class to create MappingConfiguration DOM nodes with the help of the type DomNodeType. More...

#include <datamodel_xml_configurationtoxml.h>

Public Types

using xml_base_type = MappingConfigurationToXMLFactoryBase<DomNodeType>
 base factory type for xml writing
 
using xml_mapping10_type = MappingConfigurationToXMLFactory10<DomNodeType>
 mapping10 xml writing factory type for compatibility of mapping 1.0 definition
 

Static Public Member Functions

static void createNode (DomNodeType &parent_node, const datamodel::Header &header)
 Create a Node for the header.
 
static void createNode (DomNodeType &parent_node, const datamodel::Property &property_value)
 Create a Node for a property.
 
template<typename PropertiesType>
static void createProperties (DomNodeType &parent_node, const PropertiesType &properties)
 Create a the properties nodes.
 
static void createNode (DomNodeType &parent_node, const datamodel::Source &source)
 Create a Node for a source.
 
static void createNode (DomNodeType &parent_node, const datamodel::ParameterValue &parameter_value)
 Create a Node for a ParameterValue.
 
static void createNode (DomNodeType &parent_node, const datamodel::Assignment &assignment)
 Create a Node for an Assignment.
 
static void createNode (DomNodeType &parent_node, const datamodel::Trigger &trigger)
 Create a Node for a Trigger.
 
static void createNode (DomNodeType &parent_node, const datamodel::Target &target)
 Create a Node for a Target.
 
static void createNode (DomNodeType &parent_node, const datamodel::Function &function_inst)
 Create a Node for a Funtion.
 
static void createNode (DomNodeType &parent_node, const datamodel::MappingConfiguration &config)
 Create a Node for the MappingConfiguration.
 

Detailed Description

template<typename DomNodeType>
struct ddl::mapping::MappingConfigurationToXMLFactory< DomNodeType >

Template class to create MappingConfiguration DOM nodes with the help of the type DomNodeType.

Template Parameters
DomNodeTypeThe type for the DOM Node which must follow the concept of implementing functions:
  • setAttribute(const std::string& name, const std::string& value);
  • DomNodeType& createChild(const std::string& name);
  • setData(const std::string& name, const std::string& data);

Member Function Documentation

◆ createNode() [1/9]

template<typename DomNodeType>
static void ddl::mapping::MappingConfigurationToXMLFactory< DomNodeType >::createNode ( DomNodeType & parent_node,
const datamodel::Assignment & assignment )
inlinestatic

Create a Node for an Assignment.

Parameters
parent_nodethe parent node where to create the node
assignmentthe datamodel of the assignment

◆ createNode() [2/9]

template<typename DomNodeType>
static void ddl::mapping::MappingConfigurationToXMLFactory< DomNodeType >::createNode ( DomNodeType & parent_node,
const datamodel::Function & function_inst )
inlinestatic

Create a Node for a Funtion.

Parameters
parent_nodethe parent node where to create the node
function_instthe datamodel of the function

◆ createNode() [3/9]

template<typename DomNodeType>
static void ddl::mapping::MappingConfigurationToXMLFactory< DomNodeType >::createNode ( DomNodeType & parent_node,
const datamodel::Header & header )
inlinestatic

Create a Node for the header.

Parameters
parent_nodethe parent node where to create the node
headerthe datamodel of the header

◆ createNode() [4/9]

template<typename DomNodeType>
static void ddl::mapping::MappingConfigurationToXMLFactory< DomNodeType >::createNode ( DomNodeType & parent_node,
const datamodel::MappingConfiguration & config )
inlinestatic

Create a Node for the MappingConfiguration.

Parameters
parent_nodethe parent node where to create the node
configthe datamodel of MappingConfiguration

◆ createNode() [5/9]

template<typename DomNodeType>
static void ddl::mapping::MappingConfigurationToXMLFactory< DomNodeType >::createNode ( DomNodeType & parent_node,
const datamodel::ParameterValue & parameter_value )
inlinestatic

Create a Node for a ParameterValue.

Parameters
parent_nodethe parent node where to create the node
parameter_valuethe datamodel of the parameter value

◆ createNode() [6/9]

template<typename DomNodeType>
static void ddl::mapping::MappingConfigurationToXMLFactory< DomNodeType >::createNode ( DomNodeType & parent_node,
const datamodel::Property & property_value )
inlinestatic

Create a Node for a property.

Parameters
parent_nodethe parent node where to create the node
property_valuethe datamodel of the property

◆ createNode() [7/9]

template<typename DomNodeType>
static void ddl::mapping::MappingConfigurationToXMLFactory< DomNodeType >::createNode ( DomNodeType & parent_node,
const datamodel::Source & source )
inlinestatic

Create a Node for a source.

Parameters
parent_nodethe parent node where to create the node
sourcethe datamodel of the source

◆ createNode() [8/9]

template<typename DomNodeType>
static void ddl::mapping::MappingConfigurationToXMLFactory< DomNodeType >::createNode ( DomNodeType & parent_node,
const datamodel::Target & target )
inlinestatic

Create a Node for a Target.

Parameters
parent_nodethe parent node where to create the node
targetthe datamodel of the target

◆ createNode() [9/9]

template<typename DomNodeType>
static void ddl::mapping::MappingConfigurationToXMLFactory< DomNodeType >::createNode ( DomNodeType & parent_node,
const datamodel::Trigger & trigger )
inlinestatic

Create a Node for a Trigger.

Parameters
parent_nodethe parent node where to create the node
triggerthe datamodel of the Trigger

◆ createProperties()

template<typename DomNodeType>
template<typename PropertiesType>
static void ddl::mapping::MappingConfigurationToXMLFactory< DomNodeType >::createProperties ( DomNodeType & parent_node,
const PropertiesType & properties )
inlinestatic

Create a the properties nodes.

Template Parameters
PropertiesTypethe type of properties
Parameters
parent_nodethe parent node where to create the node
propertiesthe properties to write

The documentation for this struct was generated from the following file: