DDS
ver. 3.4
|
#include "XMLHelper.h"
Go to the source code of this file.
Classes | |
struct | MiscCommon::IXMLPersistImpl< _T > |
The IXMLPersistImpl interface is a class of the XML persistance. More... | |
Namespaces | |
MiscCommon | |
Miscellaneous functions and helpers are located here. | |
Macros | |
#define | DECLARE_XMLPERSIST_IMPL(_T) friend class MiscCommon::IXMLPersistImpl<_T>; |
Declares an XML Persist Interface for user's class. More... | |
#define | BEGIN_READ_XML_NODE(_T, _ELEMENT_NAME) |
The BEGIN_READ_XML_NODE macro precedes the sequence of READ_NODE_VALUE. More... | |
#define | READ_NODE_ATTR(ELEMENT_NAME, VAR) MiscCommon::XMLHelper::get_attr_value(elementConfig, ELEMENT_NAME, &VAR); |
Reads attributes of the node from XML file. More... | |
#define | READ_NODE_VALUE(NODE_NAME, VAR) MiscCommon::XMLHelper::get_node_value(elementConfig, NODE_NAME, &VAR); |
#define | END_READ_XML_NODE } |
Closes the sequence of READ_NODE_VALUE. More... | |
#define | BEGIN_READ_XML_CFG(_T) BEGIN_READ_XML_NODE(_T, "config") |
The BEGIN_READ_XML_CFG(_T) macro precedes the sequence of READ_NODE_VALUE. More... | |
#define | END_READ_XML_CFG } |
Closes the sequence of READ_NODE_VALUE. More... | |
#define | BEGIN_WRITE_XML_CFG(_T) |
#define | END_WRITE_XML_CFG } |
#define BEGIN_READ_XML_CFG | ( | _T | ) | BEGIN_READ_XML_NODE(_T, "config") |
The BEGIN_READ_XML_CFG(_T) macro precedes the sequence of READ_NODE_VALUE.
[in] | _T | - Name of the parent class. |
#define BEGIN_READ_XML_NODE | ( | _T, | |
_ELEMENT_NAME | |||
) |
The BEGIN_READ_XML_NODE macro precedes the sequence of READ_NODE_VALUE.
[in] | _T | - Name of the parent class. |
[in] | _ELEMENT_NAME | - Name of the XML element to read. |
#define BEGIN_WRITE_XML_CFG | ( | _T | ) |
#define DECLARE_XMLPERSIST_IMPL | ( | _T | ) | friend class MiscCommon::IXMLPersistImpl<_T>; |
Declares an XML Persist Interface for user's class.
[in] | _T | - name of the parent class. |
#define END_READ_XML_CFG } |
Closes the sequence of READ_NODE_VALUE.
#define END_READ_XML_NODE } |
Closes the sequence of READ_NODE_VALUE.
#define END_WRITE_XML_CFG } |
#define READ_NODE_ATTR | ( | ELEMENT_NAME, | |
VAR | |||
) | MiscCommon::XMLHelper::get_attr_value(elementConfig, ELEMENT_NAME, &VAR); |
Reads attributes of the node from XML file.
[in] | ELEMENT_NAME | - Name of the XML element to read. |
[in,out] | VAR | - A buffer where value of the XML elements should be stored in. |
#define READ_NODE_VALUE | ( | NODE_NAME, | |
VAR | |||
) | MiscCommon::XMLHelper::get_node_value(elementConfig, NODE_NAME, &VAR); |