|
OPeNDAP Hyrax Back End Server (BES)
Updated for version 3.8.3
|
#include <XMLHelpers.h>

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 XMLAttribute * | getAttributeByLocalName (const string &localname) const |
| These return null if the attribute was not found. More... | |
| const XMLAttribute * | getAttributeByQName (const string &qname) const |
| const XMLAttribute * | getAttributeByQName (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 () | |
Definition at line 98 of file XMLHelpers.h.
| typedef vector<XMLAttribute>::const_iterator ncml_module::XMLAttributeMap::const_iterator |
Definition at line 104 of file XMLHelpers.h.
| typedef vector<XMLAttribute>::iterator ncml_module::XMLAttributeMap::iterator |
Definition at line 105 of file XMLHelpers.h.
| ncml_module::XMLAttributeMap::XMLAttributeMap | ( | ) |
Definition at line 159 of file XMLHelpers.cc.
| ncml_module::XMLAttributeMap::~XMLAttributeMap | ( | ) |
Definition at line 164 of file XMLHelpers.cc.
| 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().

| XMLAttributeMap::const_iterator ncml_module::XMLAttributeMap::begin | ( | ) | const |
Definition at line 169 of file XMLHelpers.cc.
Referenced by ncml_module::NCMLElement::areAllAttributesValid(), getAllAttributesAsString(), getAttributeByLocalName(), and getAttributeByQName().
| 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.
| XMLAttributeMap::const_iterator ncml_module::XMLAttributeMap::end | ( | ) | const |
Definition at line 175 of file XMLHelpers.cc.
Referenced by ncml_module::NCMLElement::areAllAttributesValid(), getAllAttributesAsString(), getAttributeByLocalName(), and getAttributeByQName().
| 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.

| 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().

| 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().

| 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().

| 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 209 of file XMLHelpers.cc.
References getAttributeByLocalName(), and ncml_module::XMLAttribute::value.
Referenced by ncml_module::SimpleLocationParser::onStartElement(), ncml_module::RemoveElement::setAttributes(), ncml_module::VariableAggElement::setAttributes(), ncml_module::ValuesElement::setAttributes(), ncml_module::AttributeElement::setAttributes(), ncml_module::ScanElement::setAttributes(), ncml_module::DimensionElement::setAttributes(), ncml_module::VariableElement::setAttributes(), ncml_module::NetcdfElement::setAttributes(), and ncml_module::AggregationElement::setAttributes().
