bes  Updated for version 3.20.5
ncml_module::XMLAttributeMap Class Reference
Collaboration diagram for ncml_module::XMLAttributeMap:
Collaboration graph

Public Types

typedef vector< XMLAttribute >::const_iterator const_iterator
 
typedef vector< XMLAttribute >::iterator iterator
 

Public Member Functions

void addAttribute (const XMLAttribute &attribute)
 
XMLAttributeMap::const_iterator begin () const
 
void clear ()
 
bool empty () const
 
XMLAttributeMap::const_iterator end () const
 
string getAllAttributesAsString () const
 
const XMLAttributegetAttributeByLocalName (const string &localname) const
 
const XMLAttributegetAttributeByQName (const string &prefix, const string &localname) const
 
const XMLAttributegetAttributeByQName (const string &qname) const
 
const string getValueForLocalNameOrDefault (const string &localname, const string &defVal="") const
 

Detailed Description

Definition at line 96 of file XMLHelpers.h.

Member Function Documentation

◆ addAttribute()

void ncml_module::XMLAttributeMap::addAttribute ( const XMLAttribute attribute)

TODO how do we tell if this exists? Does it replace? Do we care?

Definition at line 165 of file XMLHelpers.cc.

◆ clear()

void ncml_module::XMLAttributeMap::clear ( )

make empty

Definition at line 159 of file XMLHelpers.cc.

◆ getAllAttributesAsString()

string ncml_module::XMLAttributeMap::getAllAttributesAsString ( ) const

The classic {prefix:}foo="value" whitespace separated

Definition at line 226 of file XMLHelpers.cc.

◆ getAttributeByLocalName()

const XMLAttribute * ncml_module::XMLAttributeMap::getAttributeByLocalName ( const string &  localname) const

These return null if the attribute was not found

Definition at line 192 of file XMLHelpers.cc.

◆ getValueForLocalNameOrDefault()

const string ncml_module::XMLAttributeMap::getValueForLocalNameOrDefault ( const string &  localname,
const string &  defVal = "" 
) const

If there is an attribute with localname, return its value, else return default.

Definition at line 179 of file XMLHelpers.cc.


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