DDS  ver. 3.4
Classes | Namespaces | Functions
XMLHelper.h File Reference
#include <xercesc/dom/DOM.hpp>
#include <xercesc/dom/DOMElement.hpp>
#include <xercesc/util/XMLString.hpp>
#include <sstream>
#include <stdexcept>
#include <string>
#include "MiscUtils.h"

Go to the source code of this file.

Classes

class  MiscCommon::XMLHelper::smart_XMLCh
 smart-wrapper around XMLCh class More...
 

Namespaces

 MiscCommon
 Miscellaneous functions and helpers are located here.
 
 MiscCommon::XMLHelper
 Helpers for Xerces XML parser.
 

Functions

bool MiscCommon::XMLHelper::operator== (const std::string &_Val1, const smart_XMLCh &_Val2)
 
template<class _T >
void MiscCommon::XMLHelper::get_attr_value (const xercesc::DOMElement *_element, const char *_attr, _T *_data)
 A template function, which helps to retrieve different types of attributes from an XML file. More...
 
template<>
void MiscCommon::XMLHelper::get_attr_value< bool > (const xercesc::DOMElement *_element, const char *_attr, bool *_data)
 A specialization of the get_attr_value template function with the bool type – xml value: true or false. More...
 
template<class _T >
xercesc::DOMNode * MiscCommon::XMLHelper::GetSingleNodeByName (const _T *_Val, const std::string &_NodeName)
 Returns a Node by the given name. (basic template without implementation) More...
 
template<class _T >
xercesc::DOMNodeList * MiscCommon::XMLHelper::GetNodesByName (const _T *_Val, const std::string &_NodeName)
 
template<>
xercesc::DOMNodeList * MiscCommon::XMLHelper::GetNodesByName (const xercesc::DOMNode *_ParentNode, const std::string &_NodeName)
 
template<>
xercesc::DOMNode * MiscCommon::XMLHelper::GetSingleNodeByName (const xercesc::DOMDocument *_Doc, const std::string &_NodeName)
 Returns a Node by the given name. A xercesc::DOMDocument specialization. More...
 
template<>
xercesc::DOMNode * MiscCommon::XMLHelper::GetSingleNodeByName (const xercesc::DOMNode *_node, const std::string &_NodeName)
 Returns a Node by the given name. A xercesc::DOMNode specialization. More...
 
template<class _T >
xercesc::DOMNode * MiscCommon::XMLHelper::GetSingleNodeByName_Ex (const _T *_Node, const std::string &_NodeName) throw (std::exception)
 A helper template function, which wraps GetSingleNodeByName template-functions. More...
 
template<class _T >
void MiscCommon::XMLHelper::get_node_value (const xercesc::DOMNode *_parent_node, const char *_node_name, _T *_data)
 A template function, which helps to retrieve a value of xml node. More...
 
template<>
void MiscCommon::XMLHelper::get_node_value< bool > (const xercesc::DOMNode *_parent_node, const char *_node_name, bool *_data)
 A specialization of the get_node_value template function with the bool type – xml value: true or false. More...