21 #ifndef MAPPING_CONFIGURATION_TO_XML_BASE_H_INCLUDED
22 #define MAPPING_CONFIGURATION_TO_XML_BASE_H_INCLUDED
42 template <
typename DomNodeType>
56 const char* attribute_name,
57 const utility::Optional<T>& value)
77 const char* attribute_name,
78 const std::string& value)
81 dom_node.setAttribute(attribute_name, value);
94 const std::string& sub_node_name,
95 const std::string& value)
97 DomNodeType sub_node = dom_node.createChild(sub_node_name);
98 sub_node.setData(value);
108 const std::string& sub_node_name,
109 const std::string& value)
111 if (!value.empty()) {
OO DataDefinition Optional Implementation.
cString to_string(const tResult &i_oResult, eResultFormatFlags i_eFormatFlags=eResultFormatFlags::RFF_DisableNone, const tChar *i_strFormat=nullptr)
Copy all information of an assigned result object to a (formatted) string.
definition of the ddl namespace
Utility for the Neutrino gcc5 compiler which has really no std::to_string implementation!
Template class to create MappingConfiguration DOM nodes with the help of the type DomNodeType.
static void setSubNodeData(DomNodeType &dom_node, const std::string &sub_node_name, const std::string &value)
Set the data of the new created tag with the name sub_node_name.
static bool setOptionalAttribute(DomNodeType &dom_node, const char *attribute_name, const utility::Optional< T > &value)
Set the Optional Attribute.
static bool setOptionalAttribute(DomNodeType &dom_node, const char *attribute_name, const std::string &value)
Set the Optional Attribute.
static void setOptionalSubNodeData(DomNodeType &dom_node, const std::string &sub_node_name, const std::string &value)
Set the data of the new created tag with the name sub_node_name.