ADTF
|
Template class to create DD DOM nodes with the help of the type DOM_NODE_TYPE. More...
Static Public Member Functions | |
template<typename T > | |
static bool | setOptionalAttribute (DOM_NODE_TYPE &dom_node, const char *attribute_name, const utility::Optional< T > &value) |
Set the Optional Attribute. More... | |
static bool | setOptionalAttribute (DOM_NODE_TYPE &dom_node, const char *attribute_name, const std::string &value) |
Set the Optional Attribute. More... | |
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 . More... | |
static void | createNode (DOM_NODE_TYPE &parent_node, const datamodel::Header &header) |
Create a Node for the header. More... | |
static void | createNode (DOM_NODE_TYPE &parent_node, const datamodel::BaseUnit &base_unit) |
Create a Node for the base_unit. More... | |
static void | createNode (DOM_NODE_TYPE &parent_node, const datamodel::UnitPrefix &unit_prefix) |
Create a Node for the unit_prefix. More... | |
static void | createNode (DOM_NODE_TYPE &parent_node, const datamodel::Unit &unit) |
Create a Node for the unit. More... | |
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. More... | |
static void | createNode (DOM_NODE_TYPE &parent_node, const datamodel::EnumType &enum_type) |
Create a Node for the enum_type. More... | |
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. More... | |
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. More... | |
static void | createNode (DOM_NODE_TYPE &parent_node, const datamodel::StreamMetaType &stream_meta_type) |
Create a Node for the stream_meta_type. More... | |
static void | createNode (DOM_NODE_TYPE &parent_node, const datamodel::Stream &stream) |
Create a Node for the stream. More... | |
static void | createNode (DOM_NODE_TYPE &parent_node, const datamodel::DataDefinition &dd) |
Create a Node for the DD. More... | |
Template class to create DD DOM nodes with the help of the type DOM_NODE_TYPE.
DOM_NODE_TYPE | The type for the DOM Node which must follow the concept of implementing functions:
|
Definition at line 38 of file xml_ddtoxml_factory.h.
|
inlinestatic |
Create a Node for the base_unit.
parent_node | the parent node where to create the node |
base_unit | the datamodel of the base_unit |
Definition at line 126 of file xml_ddtoxml_factory.h.
References ddl::dd::base_unit.
|
inlinestatic |
Create a Node for the DD.
parent_node | the parent node where to create the node |
dd | the datamodel of DD |
Definition at line 373 of file xml_ddtoxml_factory.h.
References ddl::dd::base_unit, DDToXMLFactory< DOM_NODE_TYPE >::createNode(), ddl::dd::data_type, ddl::dd::enum_type, DataDefinition::getBaseUnits(), DataDefinition::getDataTypes(), DataDefinition::getEnumTypes(), DataDefinition::getHeader(), DataDefinition::getStreamMetaTypes(), DataDefinition::getStreams(), DataDefinition::getStructTypes(), DataDefinition::getUnitPrefixes(), DataDefinition::getUnits(), DataDefinition::getVersion(), ddl::dd::stream_meta_type, ddl::dd::struct_type, and ddl::dd::unit.
|
inlinestatic |
Create a Node for the data_type.
parent_node | the parent node where to create the node |
data_type | the datamodel of the unit |
file_ddl_version | the file version (this influence some attribute names and content) |
Definition at line 178 of file xml_ddtoxml_factory.h.
References ddl::dd::data_type, DDToXMLFactory< DOM_NODE_TYPE >::setOptionalAttribute(), and A_UTILS_NS::to_string().
|
inlinestatic |
Create a Node for the enum_type.
parent_node | the parent node where to create the node |
enum_type | the datamodel of enum_type |
Definition at line 210 of file xml_ddtoxml_factory.h.
References ddl::dd::enum_type.
|
inlinestatic |
Create a Node for the header.
parent_node | the parent node where to create the node |
header | the datamodel of the header |
Definition at line 103 of file xml_ddtoxml_factory.h.
References Header::getAuthor(), Header::getDateChange(), Header::getDateCreation(), Header::getDescription(), Header::getExtDeclarations(), Header::getLanguageVersion(), DDToXMLFactory< DOM_NODE_TYPE >::setData(), and VersionConversion::toString().
Referenced by DDToXMLFactory< DOM_NODE_TYPE >::createNode().
|
inlinestatic |
Create a Node for the stream.
parent_node | the parent node where to create the node |
stream | the datamodel of stream |
Definition at line 346 of file xml_ddtoxml_factory.h.
References Stream::getDescription(), Stream::getName(), Stream::getStreamTypeName(), Stream::getStructs(), DDToXMLFactory< DOM_NODE_TYPE >::setOptionalAttribute(), and A_UTILS_NS::to_string().
|
inlinestatic |
Create a Node for the stream_meta_type.
parent_node | the parent node where to create the node |
stream_meta_type | the datamodel of stream_meta_type |
Definition at line 324 of file xml_ddtoxml_factory.h.
References DDToXMLFactory< DOM_NODE_TYPE >::setOptionalAttribute(), and ddl::dd::stream_meta_type.
|
inlinestatic |
Create a Node for the struct_type.
parent_node | the parent node where to create the node |
struct_type | the datamodel of struct_type |
file_ddl_version | the file version (this influence some attribute names and content) |
Definition at line 298 of file xml_ddtoxml_factory.h.
References DDToXMLFactory< DOM_NODE_TYPE >::createNode(), DDToXMLFactory< DOM_NODE_TYPE >::setOptionalAttribute(), ddl::dd::struct_type, and VersionConversion::toString().
|
inlinestatic |
Create a Node for the struct_type element.
parent_node | the parent node where to create the node |
element | the datamodel of element |
file_ddl_version | the file version (this influence some attribute names and content) |
Definition at line 230 of file xml_ddtoxml_factory.h.
References StructType::DeserializedInfo::getAlignment(), StructType::Element::getArraySize(), ArraySize::getArraySizeElementName(), ArraySize::getArraySizeValue(), StructType::SerializedInfo::getBitPos(), StructType::SerializedInfo::getByteOrder(), StructType::SerializedInfo::getBytePos(), StructType::Element::getComment(), StructType::Element::getDefault(), StructType::Element::getDescription(), StructType::Element::getMax(), StructType::Element::getMin(), StructType::Element::getName(), StructType::SerializedInfo::getNumBits(), StructType::Element::getOffset(), StructType::Element::getScale(), StructType::Element::getTypeName(), StructType::Element::getUnitName(), StructType::Element::getValidElementCount(), StructType::Element::getValue(), ArraySize::isDynamicArraySize(), DDToXMLFactory< DOM_NODE_TYPE >::setOptionalAttribute(), A_UTILS_NS::to_string(), and ByteOrderConversion::toString().
|
inlinestatic |
Create a Node for the unit.
parent_node | the parent node where to create the node |
unit | the datamodel of the unit |
Definition at line 155 of file xml_ddtoxml_factory.h.
References DDToXMLFactory< DOM_NODE_TYPE >::setData(), A_UTILS_NS::to_string(), and ddl::dd::unit.
|
inlinestatic |
Create a Node for the unit_prefix.
parent_node | the parent node where to create the node |
unit_prefix | the datamodel of the unit_prefix |
Definition at line 140 of file xml_ddtoxml_factory.h.
References UnitPrefix::getName(), UnitPrefix::getPower(), UnitPrefix::getSymbol(), and A_UTILS_NS::to_string().
|
inlinestatic |
Set the data of the new created tag with the name sub_node_name
.
dom_node | the dom node where to set the attribute |
sub_node_name | the subnode tag name |
value | the data content |
Definition at line 89 of file xml_ddtoxml_factory.h.
Referenced by DDToXMLFactory< DOM_NODE_TYPE >::createNode().
|
inlinestatic |
Set the Optional Attribute.
This will only set the attribute if the value is not empty.
dom_node | the dom node where to set the attribute |
attribute_name | the attribute name |
value | the value of the attribute |
Definition at line 71 of file xml_ddtoxml_factory.h.
|
inlinestatic |
Set the Optional Attribute.
This will only set the attribute if the value is valid.
T | The value_type of the optional |
dom_node | the dom node where to set the attribute |
attribute_name | the attribute name |
value | the value of the attribute |
Definition at line 50 of file xml_ddtoxml_factory.h.
References A_UTILS_NS::to_string().
Referenced by DDToXMLFactory< DOM_NODE_TYPE >::createNode().