bes Updated for version 3.21.1
The Backend Server (BES) is the lower two tiers of the Hyrax data server
ncml_module::XMLAttributeMap Class Reference
Collaboration diagram for ncml_module::XMLAttributeMap:
Collaboration graph

Public Types

typedef std::vector< XMLAttribute >::const_iterator const_iterator
 
typedef std::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
 
std::string getAllAttributesAsString () const
 
const XMLAttributegetAttributeByLocalName (const std::string &localname) const
 
const XMLAttributegetAttributeByQName (const std::string &prefix, const std::string &localname) const
 
const XMLAttributegetAttributeByQName (const std::string &qname) const
 
const std::string getValueForLocalNameOrDefault (const std::string &localname, const std::string &defVal="") const
 

Detailed Description

Definition at line 93 of file XMLHelpers.h.

Member Typedef Documentation

◆ const_iterator

typedef std::vector<XMLAttribute>::const_iterator ncml_module::XMLAttributeMap::const_iterator

Definition at line 98 of file XMLHelpers.h.

◆ iterator

typedef std::vector<XMLAttribute>::iterator ncml_module::XMLAttributeMap::iterator

Definition at line 99 of file XMLHelpers.h.

Constructor & Destructor Documentation

◆ XMLAttributeMap()

ncml_module::XMLAttributeMap::XMLAttributeMap ( )

Definition at line 137 of file XMLHelpers.cc.

◆ ~XMLAttributeMap()

ncml_module::XMLAttributeMap::~XMLAttributeMap ( )

Definition at line 142 of file XMLHelpers.cc.

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 167 of file XMLHelpers.cc.

◆ begin()

XMLAttributeMap::const_iterator ncml_module::XMLAttributeMap::begin ( ) const

Definition at line 146 of file XMLHelpers.cc.

◆ clear()

void ncml_module::XMLAttributeMap::clear ( )

make empty

Definition at line 161 of file XMLHelpers.cc.

◆ empty()

bool ncml_module::XMLAttributeMap::empty ( ) const

Definition at line 156 of file XMLHelpers.cc.

◆ end()

XMLAttributeMap::const_iterator ncml_module::XMLAttributeMap::end ( ) const

Definition at line 151 of file XMLHelpers.cc.

◆ getAllAttributesAsString()

string ncml_module::XMLAttributeMap::getAllAttributesAsString ( ) const

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

Definition at line 228 of file XMLHelpers.cc.

◆ getAttributeByLocalName()

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

These return null if the attribute was not found

Definition at line 194 of file XMLHelpers.cc.

◆ getAttributeByQName() [1/2]

const XMLAttribute * ncml_module::XMLAttributeMap::getAttributeByQName ( const std::string & prefix,
const std::string & localname ) const

Definition at line 222 of file XMLHelpers.cc.

◆ getAttributeByQName() [2/2]

const XMLAttribute * ncml_module::XMLAttributeMap::getAttributeByQName ( const std::string & qname) const

Definition at line 208 of file XMLHelpers.cc.

◆ getValueForLocalNameOrDefault()

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

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

Definition at line 181 of file XMLHelpers.cc.


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