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

#include <XMLHelpers.h>

Collaboration diagram for ncml_module::XMLNamespaceStack:
Collaboration graph

Public Types

typedef vector< XMLNamespaceMap >::const_reverse_iterator const_iterator
 

Public Member Functions

XMLNamespaceStack::const_iterator begin () const
 Starts from the top (most recently pushed) and iterates to the bottom (first pushed). More...
 
void clear ()
 
bool empty () const
 
XMLNamespaceStack::const_iterator end () const
 
void getFlattenedNamespacesUsingLexicalScoping (XMLNamespaceMap &nsFlattened) const
 Scanning from the stack top downwards, add the first found new XMLNamespace (in terms of its prefix) into nsFlattened until the stack bottom is reached. More...
 
XMLNamespaceStackoperator= (const XMLNamespaceStack &rhs)
 
void pop ()
 
void push (const XMLNamespaceMap &nsMap)
 
const XMLNamespaceMaptop () const
 
 XMLNamespaceStack ()
 
 XMLNamespaceStack (const XMLNamespaceStack &proto)
 
 ~XMLNamespaceStack ()
 

Detailed Description

Definition at line 197 of file XMLHelpers.h.

Member Typedef Documentation

typedef vector<XMLNamespaceMap>::const_reverse_iterator ncml_module::XMLNamespaceStack::const_iterator

Definition at line 213 of file XMLHelpers.h.

Constructor & Destructor Documentation

ncml_module::XMLNamespaceStack::XMLNamespaceStack ( )

Definition at line 469 of file XMLHelpers.cc.

ncml_module::XMLNamespaceStack::~XMLNamespaceStack ( )

Definition at line 474 of file XMLHelpers.cc.

ncml_module::XMLNamespaceStack::XMLNamespaceStack ( const XMLNamespaceStack proto)

Definition at line 480 of file XMLHelpers.cc.

Member Function Documentation

XMLNamespaceStack::const_iterator ncml_module::XMLNamespaceStack::begin ( ) const

Starts from the top (most recently pushed) and iterates to the bottom (first pushed).

Definition at line 527 of file XMLHelpers.cc.

Referenced by getFlattenedNamespacesUsingLexicalScoping().

void ncml_module::XMLNamespaceStack::clear ( )

Definition at line 521 of file XMLHelpers.cc.

bool ncml_module::XMLNamespaceStack::empty ( ) const

Definition at line 515 of file XMLHelpers.cc.

XMLNamespaceStack::const_iterator ncml_module::XMLNamespaceStack::end ( ) const

Definition at line 533 of file XMLHelpers.cc.

Referenced by getFlattenedNamespacesUsingLexicalScoping().

void ncml_module::XMLNamespaceStack::getFlattenedNamespacesUsingLexicalScoping ( XMLNamespaceMap nsFlattened) const

Scanning from the stack top downwards, add the first found new XMLNamespace (in terms of its prefix) into nsFlattened until the stack bottom is reached.

Effectively finds all the namespaces visible on the stack currently. Note: Doesn't clear the nsFlattened, so it can be "seeded" with namespaces that should be shadowed on the stack (ie a local element's namespaces)

Parameters
nsFlattenednamespace container (could start !empty() which will contain the flattened namespaces using lexical scoping on the stack.

Definition at line 539 of file XMLHelpers.cc.

References begin(), and end().

Referenced by ncml_module::OtherXMLParser::onStartElementWithNamespace().

Here is the call graph for this function:

XMLNamespaceStack & ncml_module::XMLNamespaceStack::operator= ( const XMLNamespaceStack rhs)

Definition at line 486 of file XMLHelpers.cc.

void ncml_module::XMLNamespaceStack::pop ( )

Definition at line 503 of file XMLHelpers.cc.

Referenced by ncml_module::NCMLParser::onEndElementWithNamespace().

void ncml_module::XMLNamespaceStack::push ( const XMLNamespaceMap nsMap)

Definition at line 497 of file XMLHelpers.cc.

Referenced by ncml_module::NCMLParser::onStartElementWithNamespace().

const XMLNamespaceMap & ncml_module::XMLNamespaceStack::top ( ) const

Definition at line 509 of file XMLHelpers.cc.


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