OPeNDAP Hyrax Back End Server (BES)  Updated for version 3.8.3
ncml_module::XMLAttributeMap Class Reference

#include <XMLHelpers.h>

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)
 TODO how do we tell if this exists? Does it replace? Do we care? More...
 
XMLAttributeMap::const_iterator begin () const
 
void clear ()
 make empty More...
 
bool empty () const
 
XMLAttributeMap::const_iterator end () const
 
string getAllAttributesAsString () const
 The classic {prefix:}foo="value" whitespace separated. More...
 
const XMLAttributegetAttributeByLocalName (const string &localname) const
 These return null if the attribute was not found. More...
 
const XMLAttributegetAttributeByQName (const string &qname) const
 
const XMLAttributegetAttributeByQName (const string &prefix, const string &localname) const
 
const string getValueForLocalNameOrDefault (const string &localname, const string &defVal="") const
 If there is an attribute with localname, return its value, else return default. More...
 
 XMLAttributeMap ()
 
 ~XMLAttributeMap ()
 

Detailed Description

Definition at line 98 of file XMLHelpers.h.

Member Typedef Documentation

Definition at line 105 of file XMLHelpers.h.

Constructor & Destructor Documentation

ncml_module::XMLAttributeMap::XMLAttributeMap ( )

Definition at line 159 of file XMLHelpers.cc.

ncml_module::XMLAttributeMap::~XMLAttributeMap ( )

Definition at line 164 of file XMLHelpers.cc.

Member Function Documentation

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

References ncml_module::XMLAttribute::getQName().

Referenced by ncml_module::ScanElement::getDatasetList().

Here is the call graph for this function:

void ncml_module::XMLAttributeMap::clear ( )

make empty

Definition at line 187 of file XMLHelpers.cc.

Referenced by ncml_module::ScanElement::getDatasetList().

bool ncml_module::XMLAttributeMap::empty ( ) const

Definition at line 181 of file XMLHelpers.cc.

string ncml_module::XMLAttributeMap::getAllAttributesAsString ( ) const

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

Definition at line 263 of file XMLHelpers.cc.

References begin(), end(), ncml_module::XMLAttribute::getQName(), and ncml_module::XMLAttribute::value.

Here is the call graph for this function:

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

These return null if the attribute was not found.

Definition at line 224 of file XMLHelpers.cc.

References begin(), end(), and ncml_module::XMLAttribute::localname.

Referenced by getValueForLocalNameOrDefault().

Here is the call graph for this function:

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

Definition at line 240 of file XMLHelpers.cc.

References begin(), end(), and ncml_module::XMLAttribute::getQName().

Referenced by getAttributeByQName().

Here is the call graph for this function:

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

Definition at line 256 of file XMLHelpers.cc.

References getAttributeByQName(), and ncml_module::XMLAttribute::getQName().

Here is the call graph for this function:

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

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