|
ADTF
|
Factory to create a MappingConfiguration out of a XML based description. This factory uses a template type DomNodeType which is designed to follow the a concept class type definition of the a_util::DOMElement.
More...
#include <datamodel_xml_configurationfromxml_10.h>
Classes | |
| struct | NeedFunctions |
| helper structure to create modules for compatibility reason. More... | |
Public Types | |
| using | xml_base_type = MappingConfigurationFromXMLFactoryBase<DomNodeType> |
| base factory type for xml reading | |
Static Public Member Functions | |
| template<typename T> | |
| static utility::Optional< T > | getAttributeMandatory (const DomNodeType &dom_node, const std::string &attribute_name, const std::string &additional_info={}) |
| Get the mandatory attribute helper function. | |
| template<typename T> | |
| static utility::Optional< T > | getAttribute (const DomNodeType &dom_node, const std::string &attribute_name) |
| Get the attribute. | |
| static datamodel::Source | createSource (const DomNodeType &dom_node) |
| Create a Source object. | |
| static datamodel::Assignment::SourceValue | getAsSourceValue (const std::string &variable) |
| Get the given string as source value. | |
| static utility::Optional< std::string > | parseFunctionParameter (const std::string &function_call) |
| Parse function call for parameter values. | |
| static std::pair< datamodel::Assignment::FunctionCall, std::vector< datamodel::ParameterValue > > | createFunctionCall (const std::string &target_name, const std::string &function_attribute, NeedFunctions &need_functions) |
| Create a compatibility module call out of function attribute in 1.0. | |
| static datamodel::Assignment | createAssignment (const DomNodeType &dom_node, const std::string &target_name, NeedFunctions &need_functions) |
| Create a Assignment. | |
| static datamodel::Trigger | createPeriodTrigger (const DomNodeType &dom_node) |
| Create a Trigger object as Trigger(Period) | |
| static datamodel::Trigger | createDataTrigger (const DomNodeType &dom_node) |
| Create a Trigger object as Trigger(Data) | |
| static datamodel::Trigger | createSourceTrigger (const DomNodeType &dom_node) |
| Create a Trigger object as Trigger(Source) | |
| static datamodel::Trigger | createTrigger (const DomNodeType &dom_node) |
| Create a Trigger object. | |
| static datamodel::Target | createTarget (const DomNodeType &dom_node, NeedFunctions &need_functions) |
| Create a Target object. | |
| static void | setOptionalProperty (const DomNodeType &dom_node, const std::string &property_name, datamodel::Function &module_instance) |
| Set the Optional Property into the data model of a module. | |
| static void | setEnumTableProperty (const DomNodeType &dom_node, datamodel::Function &module_inst) |
| Set the Enum Table Property from the 1.0 definitions. | |
| static datamodel::Function | createFunctionFromTransformation (const DomNodeType &dom_node) |
| Create a Module object from a tranformation defintion. | |
| static datamodel::MappingConfiguration | createConfiguration (const DomNodeType &dom_node, const datamodel::Header &header) |
| Creates a MappingConfiguration and read all sub node. | |
Static Public Attributes | |
| static constexpr auto | mapping_reading_version = "Mapping10::" |
| Error message definition string. | |
Factory to create a MappingConfiguration out of a XML based description. This factory uses a template type DomNodeType which is designed to follow the a concept class type definition of the a_util::DOMElement.
| DomNodeType | a DOMElement class must implement following funtions:
|
|
inlinestatic |
Create a Assignment.
| dom_node | the node to create the Assignment from (should be "assignment" tag name). |
| target_name | the target name of where the assignment is within |
| need_functions | the return value of needed engine or time module |
|
inlinestatic |
Creates a MappingConfiguration and read all sub node.
| dom_node | node to create the MappingConfiguration from. |
| header | the header already parsed in the caller |
|
inlinestatic |
Create a Trigger object as Trigger(Data)
| dom_node | the node to create the Trigger from (should be "trigger" tag name). |
|
inlinestatic |
Create a compatibility module call out of function attribute in 1.0.
| target_name | the target name the assignment and function call is within |
| function_attribute | the function attribute to parse |
| need_functions | the return value of needed function |
|
inlinestatic |
Create a Module object from a tranformation defintion.
| dom_node | the node to create the Module from (should be "polynomial" or "enum_table" tag name). |
|
inlinestatic |
Create a Trigger object as Trigger(Period)
| dom_node | the node to create the Trigger from (should be "trigger" tag name). |
|
inlinestatic |
Create a Source object.
| dom_node | the node to create the Source from (should be "source" tag name). |
|
inlinestatic |
Create a Trigger object as Trigger(Source)
| dom_node | the node to create the Trigger from (should be "trigger" tag name). |
|
inlinestatic |
Create a Target object.
| dom_node | the node to create the Target from (should be "target" tag name). |
| need_functions | the return value of needed engine or time funtions |
|
inlinestatic |
Create a Trigger object.
| dom_node | the node to create the Trigger from (should be "trigger" tag name). |
|
inlinestatic |
Get the given string as source value.
| variable | the value to parse |
|
inlinestatic |
Get the attribute.
| T | the type to retrieve |
| dom_node | the node where the attribute may be retrieved fron |
| attribute_name | the attribute name |
|
inlinestatic |
Get the mandatory attribute helper function.
| T | the type to retrieve |
| dom_node | the node where the attribute may be retrieved fron |
| attribute_name | the attribute name |
| additional_info | additional info if not retrieved within the exception |
| throws | mapping::Error if attribute does not exist |
|
inlinestatic |
Parse function call for parameter values.
| function_call | the function call to parse |
|
inlinestatic |
Set the Enum Table Property from the 1.0 definitions.
| dom_node | The node of "enum_table" will be converted to the "ddl_enum_table" module |
| module_inst | the module to set the "table" property to |
|
inlinestatic |
Set the Optional Property into the data model of a module.
| dom_node | the dom node to parse |
| property_name | the optional attribute and property name |
| module_instance | the module to set the property to |