ADTF
|
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 ¶meter_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... | |
Template class to create MappingConfiguration DOM nodes with the help of the type DomNodeType.
DomNodeType | The type for the DOM Node which must follow the concept of implementing functions:
|
Definition at line 44 of file datamodel_xml_configurationtoxml.h.
|
inlinestatic |
Create a Node for an Assignment.
parent_node | the parent node where to create the node |
assignment | the datamodel of the assignment |
Definition at line 149 of file datamodel_xml_configurationtoxml.h.
References Assignment::const_value, MappingConfigurationToXMLFactory< DomNodeType >::createNode(), Assignment::function_call, Assignment::getConstValue(), Assignment::getFunctionCall(), Assignment::getName(), Assignment::getParameterValues(), Assignment::getSourceValue(), Assignment::getTo(), Assignment::getType(), MappingConfigurationToXMLFactoryBase< DomNodeType >::setOptionalSubNodeData(), MappingConfigurationToXMLFactoryBase< DomNodeType >::setSubNodeData(), Assignment::source_value, and ParameterValue::ConstValue::value.
|
inlinestatic |
Create a Node for a Funtion.
parent_node | the parent node where to create the node |
function_inst | the 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().
|
inlinestatic |
Create a Node for the header.
parent_node | the parent node where to create the node |
header | the datamodel of the header |
Definition at line 59 of file datamodel_xml_configurationtoxml.h.
References Header::getAuthor(), Header::getDateChange(), Header::getDateCreation(), Header::getDescription(), Header::getMappingVersion(), MappingConfigurationToXMLFactoryBase< DomNodeType >::setSubNodeData(), and VersionConversion::toString().
Referenced by MappingConfigurationToXMLFactory< DomNodeType >::createNode().
|
inlinestatic |
Create a Node for the MappingConfiguration.
parent_node | the parent node where to create the node |
config | the datamodel of MappingConfiguration |
Definition at line 257 of file datamodel_xml_configurationtoxml.h.
References MappingConfigurationToXMLFactory< DomNodeType >::createNode(), MappingConfigurationToXMLFactory10< DomNodeType >::createNode(), MappingConfiguration::getFunctions(), MappingConfiguration::getHeader(), MappingConfiguration::getSources(), MappingConfiguration::getTargets(), and MappingConfiguration::getVersion().
|
inlinestatic |
Create a Node for a ParameterValue.
parent_node | the parent node where to create the node |
parameter_value | the datamodel of the parameter value |
Definition at line 117 of file datamodel_xml_configurationtoxml.h.
References ParameterValue::const_value, ParameterValue::getConstValue(), ParameterValue::getInternalValue(), ParameterValue::getName(), ParameterValue::getSourceValue(), ParameterValue::getType(), ParameterValue::internal_value, MappingConfigurationToXMLFactoryBase< DomNodeType >::setOptionalSubNodeData(), MappingConfigurationToXMLFactoryBase< DomNodeType >::setSubNodeData(), ParameterValue::source_value, and ParameterValue::ConstValue::value.
|
inlinestatic |
Create a Node for a property.
parent_node | the parent node where to create the node |
property_value | the datamodel of the property |
Definition at line 75 of file datamodel_xml_configurationtoxml.h.
References Property::getName(), and Property::getValue().
|
inlinestatic |
Create a Node for a source.
parent_node | the parent node where to create the node |
source | the 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().
|
inlinestatic |
Create a Node for a Target.
parent_node | the parent node where to create the node |
target | the datamodel of the target |
Definition at line 216 of file datamodel_xml_configurationtoxml.h.
References MappingConfigurationToXMLFactory< DomNodeType >::createNode(), MappingConfigurationToXMLFactory< DomNodeType >::createProperties(), Target::getAssignments(), Target::getName(), Target::getProperties(), Target::getTriggers(), and Target::getType().
|
inlinestatic |
Create a Node for a Trigger.
parent_node | the parent node where to create the node |
trigger | the 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().
|
inlinestatic |
Create a the properties nodes.
PropertiesType | the type of properties |
parent_node | the parent node where to create the node |
properties | the properties to write |
Definition at line 89 of file datamodel_xml_configurationtoxml.h.
Referenced by MappingConfigurationToXMLFactory< DomNodeType >::createNode().