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 helper type for xml writing | |
Static Public Member Functions | |
static void | createNode (DomNodeType &parent_node, const datamodel::Source &source) |
Create a Node for a source. More... | |
static void | resolveFunctionCall (DomNodeType &assignment_node, const datamodel::Assignment &assignment, const std::string ¤t_target_name, const datamodel::MappingConfiguration::Functions &functions) |
resolve a function call to a version 1.0 valid assignment More... | |
static void | createNode (DomNodeType &parent_node, const datamodel::Assignment &assignment, const std::string ¤t_target_name, const datamodel::MappingConfiguration::Functions &functions) |
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, const datamodel::MappingConfiguration::Functions &functions) |
Create a Node for a Target. More... | |
template<typename PropertiesType > | |
static void | setPropertyAsAttribute (DomNodeType &parent_node, const std::string &name, const PropertiesType &properties, bool is_mandatory) |
Set a Property as attribute if property exists. More... | |
static void | setEnumTableNodes (DomNodeType &dom_node, const std::shared_ptr< const datamodel::Property > &prop) |
Set the Enum Table conversion Nodes of mpping 1.0 from the given property. More... | |
static void | createNode (DomNodeType &parent_node, const datamodel::Function &function_inst) |
Create a Node for a Module. More... | |
static void | createNode (DomNodeType &parent_node, const datamodel::MappingConfiguration &config) |
Create a Node for the config. 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 158 of file datamodel_xml_configurationtoxml_10.h.
|
inlinestatic |
Create a Node for an Assignment.
parent_node | the parent node where to create the node |
assignment | the datamodel of the assignment |
current_target_name | the target name the assignment belongs to |
functions | the functions of the configuration |
Definition at line 229 of file datamodel_xml_configurationtoxml_10.h.
References Assignment::const_value, Assignment::function_call, Assignment::getConstValue(), Assignment::getName(), Assignment::getSourceValue(), Assignment::getTo(), Assignment::getType(), MappingConfigurationToXMLFactory10< DomNodeType >::resolveFunctionCall(), Assignment::source_value, and ParameterValue::ConstValue::value.
|
inlinestatic |
Create a Node for a Module.
parent_node | the parent node where to create the node |
function_inst | the datamodel of the function |
Definition at line 387 of file datamodel_xml_configurationtoxml_10.h.
References Function::getName(), Function::getProperties(), Function::getType(), MappingConfigurationToXMLFactory10< DomNodeType >::setEnumTableNodes(), and MappingConfigurationToXMLFactory10< DomNodeType >::setPropertyAsAttribute().
|
inlinestatic |
Create a Node for the config.
parent_node | the parent node where to create the node |
config | the datamodel of MappingConfiguration |
Definition at line 424 of file datamodel_xml_configurationtoxml_10.h.
References MappingConfigurationToXMLFactory10< DomNodeType >::createNode(), MappingConfiguration::getFunctions(), MappingConfiguration::getSources(), and MappingConfiguration::getTargets().
|
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 169 of file datamodel_xml_configurationtoxml_10.h.
References Source::getName(), Source::getProperties(), and Source::getType().
Referenced by MappingConfigurationToXMLFactory< DomNodeType >::createNode(), and MappingConfigurationToXMLFactory10< DomNodeType >::createNode().
|
inlinestatic |
Create a Node for a Target.
parent_node | the parent node where to create the node |
target | the datamodel of the target |
functions | the functions of the configuration |
Definition at line 295 of file datamodel_xml_configurationtoxml_10.h.
References MappingConfigurationToXMLFactory10< DomNodeType >::createNode(), 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 264 of file datamodel_xml_configurationtoxml_10.h.
References Trigger::data, Trigger::period, Trigger::source, and adtf::streaming::ant::trigger().
|
inlinestatic |
resolve a function call to a version 1.0 valid assignment
assignment_node | the assignment node |
assignment | the assignment |
current_target_name | the current target the assignment belongs to |
functions | the functions in config |
Definition at line 199 of file datamodel_xml_configurationtoxml_10.h.
References Assignment::getFunctionCall(), ddl::mapping::getMapping10FunctionCallAttributes(), and Assignment::getName().
Referenced by MappingConfigurationToXMLFactory10< DomNodeType >::createNode().
|
inlinestatic |
Set the Enum Table conversion Nodes of mpping 1.0 from the given property.
dom_node | the node to set the conversion nodes to |
prop | the property to convert |
Definition at line 363 of file datamodel_xml_configurationtoxml_10.h.
Referenced by MappingConfigurationToXMLFactory10< DomNodeType >::createNode().
|
inlinestatic |
Set a Property as attribute if property exists.
PropertiesType |
parent_node | the node to set the attribute to |
name | the name of the property and attribute |
properties | the properties to retrieve the property from |
is_mandatory | indicates if the property must exists or not |
mapping::Error | if is_mandatory is set and the property was not found |
Definition at line 340 of file datamodel_xml_configurationtoxml_10.h.
Referenced by MappingConfigurationToXMLFactory10< DomNodeType >::createNode().