Template class to create DD DOM nodes with the help of the type DOM_NODE_TYPE.
More...
|
| template<typename T> |
| static bool | setOptionalAttribute (DOM_NODE_TYPE &dom_node, const std::string &attribute_name, const utility::Optional< T > &value) |
| | Set the Optional Attribute. This will only set the attribute if the value is valid.
|
| |
| static bool | setOptionalAttribute (DOM_NODE_TYPE &dom_node, const std::string &attribute_name, const std::string &value) |
| | Set the Optional Attribute. This will only set the attribute if the value is not empty.
|
| |
| static void | setData (DOM_NODE_TYPE &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 void | createNode (DOM_NODE_TYPE &parent_node, const datamodel::Header &header) |
| | Create a Node for the header.
|
| |
| static void | createNode (DOM_NODE_TYPE &parent_node, const datamodel::BaseUnit &base_unit) |
| | Create a Node for the base_unit.
|
| |
| static void | createNode (DOM_NODE_TYPE &parent_node, const datamodel::UnitPrefix &unit_prefix) |
| | Create a Node for the unit_prefix.
|
| |
| static void | createNode (DOM_NODE_TYPE &parent_node, const datamodel::Unit &unit) |
| | Create a Node for the unit.
|
| |
| static void | createNode (DOM_NODE_TYPE &parent_node, const datamodel::DataType &data_type, const Version &file_ddl_version) |
| | Create a Node for the data_type.
|
| |
| static void | createNode (DOM_NODE_TYPE &parent_node, const datamodel::EnumType &enum_type) |
| | Create a Node for the enum_type.
|
| |
| static void | createNode (DOM_NODE_TYPE &parent_node, const datamodel::StructType::Element &element, const Version &file_ddl_version) |
| | Create a Node for the struct_type element.
|
| |
| static void | createNode (DOM_NODE_TYPE &parent_node, const datamodel::StructType &struct_type, const Version &file_ddl_version) |
| | Create a Node for the struct_type.
|
| |
| static void | createNode (DOM_NODE_TYPE &parent_node, const datamodel::StreamMetaType &stream_meta_type) |
| | Create a Node for the stream_meta_type.
|
| |
| static void | createNode (DOM_NODE_TYPE &parent_node, const datamodel::Stream &stream) |
| | Create a Node for the stream.
|
| |
| static void | createNode (DOM_NODE_TYPE &parent_node, const datamodel::DataDefinition &dd) |
| | Create a Node for the DD.
|
| |
template<typename DOM_NODE_TYPE>
struct ddl::dd::DDToXMLFactory< DOM_NODE_TYPE >
Template class to create DD DOM nodes with the help of the type DOM_NODE_TYPE.
- Template Parameters
-
| DOM_NODE_TYPE | The type for the DOM Node which must follow the concept of implementing functions:
- setAttribute(const std::string& name, const std::string& value);
- DOM_NODE_TYPE& createChild(const std::string& name);
- setData(const std::string& name, const
std::string& data);
|