nidas v1.2.3
Public Member Functions | Private Member Functions | Private Attributes | List of all members
nidas::core::XDOMElement Class Reference

Wrapper class providing convienence methods to access the string attributes of a DOMElement. More...

#include <XDOM.h>

Public Member Functions

 XDOMElement (const xercesc::DOMElement *e)
 
 XDOMElement (xercesc::DOMElement *e)
 
const std::string & getAttributeValue (const std::string &aname)
 
void setAttributeValue (const std::string &name, const std::string &val)
 
const std::string & getNodeName () const
 
const std::string & getNodeType () const
 
const xercesc::DOMElement * getElement () const
 

Private Member Functions

 XDOMElement (const XDOMElement &)
 No copying.
 
XDOMElementoperator= (const XDOMElement &)
 No assignment.
 

Private Attributes

const xercesc::DOMElement * _elemConst
 
xercesc::DOMElement * _elemNonConst
 
std::map< std::string, std::string > _attrs
 
std::string _nodename
 
std::string _nodetype
 

Detailed Description

Wrapper class providing convienence methods to access the string attributes of a DOMElement.

Constructor & Destructor Documentation

◆ XDOMElement() [1/3]

nidas::core::XDOMElement::XDOMElement ( const xercesc::DOMElement * e)
inline

◆ XDOMElement() [2/3]

nidas::core::XDOMElement::XDOMElement ( xercesc::DOMElement * e)
inline

◆ XDOMElement() [3/3]

nidas::core::XDOMElement::XDOMElement ( const XDOMElement & )
private

No copying.

Member Function Documentation

◆ getAttributeValue()

const std::string & nidas::core::XDOMElement::getAttributeValue ( const std::string & aname)
inline
Returns
an empty string if attribute does not have a specified or default value.

References _attrs, _elemConst, and nidas::core::getSample().

◆ getElement()

const xercesc::DOMElement * nidas::core::XDOMElement::getElement ( ) const
inline

References _elemConst.

◆ getNodeName()

const std::string & nidas::core::XDOMElement::getNodeName ( ) const
inline

References _nodename.

◆ getNodeType()

const std::string & nidas::core::XDOMElement::getNodeType ( ) const
inline

References _nodetype.

◆ operator=()

XDOMElement & nidas::core::XDOMElement::operator= ( const XDOMElement & )
private

No assignment.

◆ setAttributeValue()

void nidas::core::XDOMElement::setAttributeValue ( const std::string & name,
const std::string & val )
inline

Member Data Documentation

◆ _attrs

std::map<std::string,std::string> nidas::core::XDOMElement::_attrs
private

◆ _elemConst

const xercesc::DOMElement* nidas::core::XDOMElement::_elemConst
private

Referenced by getAttributeValue(), and getElement().

◆ _elemNonConst

xercesc::DOMElement* nidas::core::XDOMElement::_elemNonConst
private

Referenced by setAttributeValue().

◆ _nodename

std::string nidas::core::XDOMElement::_nodename
private

Referenced by getNodeName().

◆ _nodetype

std::string nidas::core::XDOMElement::_nodetype
private

Referenced by getNodeType().


The documentation for this class was generated from the following file: