|
ADTF
|
Factory to create a MappingConfiguration out of a XML based description. This factory uses a template type DomNodeType which is design to follow the a concept class type definition of the a_util::DOMElement. More...
#include <datamodel_xml_configurationfromxml.h>
Public Types | |
| using | xml_base_type = MappingConfigurationFromXMLFactoryBase<DomNodeType> |
| base factory type for xml reading | |
| using | xml_mapping10_type = MappingConfigurationFromXMLFactory10<DomNodeType> |
| mapping10 xml reading factory type for compatibility of mapping 1.0 definition | |
Static Public Member Functions | |
| template<typename T> | |
| static utility::Optional< T > | getAttributeMandatory (const DomNodeType &dom_node, const std::string &attribute_name) |
| 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. | |
| template<typename T> | |
| static utility::Optional< T > | getDataSubNodeMandatory (const DomNodeType &dom_node, const std::string &tag_name, const std::string &additional_info={}) |
| Get the mandatory sub node data helper function. | |
| template<typename T> | |
| static utility::Optional< T > | getDataSubNode (const DomNodeType &dom_node, const std::string &tag_name) |
| Get the mandatory sub node data helper function. | |
| static datamodel::Header | createHeader (const DomNodeType &dom_node, const Version &version) |
| Create a Header object. | |
| template<typename PropertiesType> | |
| static void | setDataOrSubNodesAsProperty (const DomNodeType &dom_node, PropertiesType &properties) |
| Set the Data Or Sub Nodes As Property. | |
| static datamodel::Source | createSource (const DomNodeType &dom_node) |
| Create a Source object. | |
| static datamodel::ParameterValue | createParameterValue (const DomNodeType &dom_node) |
| Create a ParameterValue object. | |
| static datamodel::Assignment | createAssignment (const DomNodeType &dom_node) |
| Create a Assignment object. | |
| 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, const Version &version) |
| Create a Trigger object. | |
| static datamodel::Trigger | createTrigger (const DomNodeType &dom_node) |
| Create a Trigger object. | |
| static datamodel::Target | createTarget (const DomNodeType &dom_node, const Version &version) |
| Create a Target object. | |
| static datamodel::Target | createTarget (const DomNodeType &dom_node) |
| Create a Target object. | |
| static datamodel::Function | createFunction (const DomNodeType &dom_node) |
| Create a Function. | |
| static datamodel::MappingConfiguration | createConfiguration (const DomNodeType &dom_node, const Version &mapping_version=Version::getLatestVersion()) |
| Creates a MappingConfiguration and read all sub node. | |
Static Public Attributes | |
| static constexpr auto | mapping_reading_version = "Mapping20::" |
| Error message definition string. | |
Factory to create a MappingConfiguration out of a XML based description. This factory uses a template type DomNodeType which is design 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 object.
| dom_node | the node to create the Assignment from (should be "assignment" tag name). |
|
inlinestatic |
Creates a MappingConfiguration and read all sub node.
| dom_node | node to create the MappingConfiguration from. |
| mapping_version | forced language version if no header-tag or language-version is found within the dom_node |
|
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 Function.
| dom_node | the node to create the function from (should be "function" tag name). |
|
inlinestatic |
Create a Header object.
| dom_node | the node to create the header from (should be "header" tag name). |
| version | mapping version to use if no "language_version" attribute is found |
|
inlinestatic |
Create a ParameterValue object.
| dom_node | the node to create the ParameterValue from (should be "parameter_value" 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). |
|
inlinestatic |
Create a Target object.
| dom_node | the node to create the Target from (should be "target" tag name). |
| version | Mapping Version of the current parsed xml content |
|
inlinestatic |
Create a Trigger object.
| dom_node | the node to create the Trigger from (should be "trigger" tag name). |
|
inlinestatic |
Create a Trigger object.
| dom_node | the node to create the Trigger from (should be "trigger" tag name). |
| version | Mapping Version of the current parsed xml content |
|
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 |
| throws | mapping::Error if attribute does not exist |
|
inlinestatic |
Get the mandatory sub node data helper function.
| T | the type to retrieve |
| dom_node | the node where the attribute may be retrieved fron |
| tag_name | the tag name |
|
inlinestatic |
Get the mandatory sub node data helper function.
| T | the type to retrieve |
| dom_node | the node where the attribute may be retrieved fron |
| tag_name | the tag name |
| additional_info | additional info if not retrieved within the exception |
| throws | mapping::Error if attribute does not exist |
|
inlinestatic |
Set the Data Or Sub Nodes As Property.
| PropertiesType | the type for properties to set the properties to |
| dom_node | the "properties" node to read the values from |
| properties | the properties collection to set the found properties to |