ADTF
MappingConfigurationToXMLFactory< DomNodeType >

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

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

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);

Definition at line 44 of file datamodel_xml_configurationtoxml.h.

Member Function Documentation

◆ createNode() [1/9]

◆ createNode() [2/9]

static void 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

Definition at line 243 of file datamodel_xml_configurationtoxml.h.

References MappingConfigurationToXMLFactory< DomNodeType >::createProperties(), Function::getName(), Function::getProperties(), and Function::getType().

◆ createNode() [3/9]

static void createNode ( DomNodeType &  parent_node,
const datamodel::Header header 
)
inlinestatic

◆ createNode() [4/9]

◆ createNode() [5/9]

static void createNode ( DomNodeType &  parent_node,
const datamodel::ParameterValue parameter_value 
)
inlinestatic

◆ createNode() [6/9]

static void 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

Definition at line 75 of file datamodel_xml_configurationtoxml.h.

References Property::getName(), and Property::getValue().

◆ createNode() [7/9]

static void 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

Definition at line 104 of file datamodel_xml_configurationtoxml.h.

References MappingConfigurationToXMLFactory< DomNodeType >::createProperties(), Source::getName(), Source::getProperties(), and Source::getType().

◆ createNode() [8/9]

static void createNode ( DomNodeType &  parent_node,
const datamodel::Target target 
)
inlinestatic

◆ createNode() [9/9]

static void 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

Definition at line 184 of file datamodel_xml_configurationtoxml.h.

References Trigger::data, Trigger::period, MappingConfigurationToXMLFactoryBase< DomNodeType >::setSubNodeData(), Trigger::source, and adtf::streaming::ant::trigger().

◆ createProperties()

static void 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

Definition at line 89 of file datamodel_xml_configurationtoxml.h.

Referenced by MappingConfigurationToXMLFactory< DomNodeType >::createNode().