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

#include <XMLHelpers.h>

Collaboration diagram for ncml_module::XMLNamespaceMap:
Collaboration graph

Public Types

typedef vector< XMLNamespace >::const_iterator const_iterator
 

Public Member Functions

void addNamespace (const XMLNamespace &ns)
 If the given prefix is already in the map, ns REPLACES it. More...
 
XMLNamespaceMap::const_iterator begin () const
 
void clear ()
 
bool empty () const
 
XMLNamespaceMap::const_iterator end () const
 
XMLNamespaceMap::const_iterator find (const string &prefix) const
 Return the iterator to the element or end() if not found. More...
 
void fromSAX2Namespaces (const xmlChar **pNamespaces, int numNamespaces)
 Read them all in from the xmlChar array. More...
 
string getAllNamespacesAsAttributeString () const
 Get a big string full of xmlns:prefix="uri" attributes, separated by spaces. More...
 
bool isInMap (const string &prefix) const
 
XMLNamespaceMapoperator= (const XMLNamespaceMap &rhs)
 
 XMLNamespaceMap ()
 
 XMLNamespaceMap (const XMLNamespaceMap &proto)
 
 ~XMLNamespaceMap ()
 

Detailed Description

Definition at line 155 of file XMLHelpers.h.

Member Typedef Documentation

Constructor & Destructor Documentation

ncml_module::XMLNamespaceMap::XMLNamespaceMap ( )

Definition at line 342 of file XMLHelpers.cc.

ncml_module::XMLNamespaceMap::~XMLNamespaceMap ( )

Definition at line 347 of file XMLHelpers.cc.

ncml_module::XMLNamespaceMap::XMLNamespaceMap ( const XMLNamespaceMap proto)

Definition at line 352 of file XMLHelpers.cc.

Member Function Documentation

void ncml_module::XMLNamespaceMap::addNamespace ( const XMLNamespace ns)

If the given prefix is already in the map, ns REPLACES it.

Definition at line 426 of file XMLHelpers.cc.

References ncml_module::XMLNamespace::prefix.

Referenced by fromSAX2Namespaces().

XMLNamespaceMap::const_iterator ncml_module::XMLNamespaceMap::begin ( ) const

Definition at line 394 of file XMLHelpers.cc.

Referenced by find(), and getAllNamespacesAsAttributeString().

void ncml_module::XMLNamespaceMap::clear ( )

Definition at line 441 of file XMLHelpers.cc.

Referenced by fromSAX2Namespaces().

bool ncml_module::XMLNamespaceMap::empty ( ) const

Definition at line 447 of file XMLHelpers.cc.

XMLNamespaceMap::const_iterator ncml_module::XMLNamespaceMap::end ( ) const

Definition at line 400 of file XMLHelpers.cc.

Referenced by find(), getAllNamespacesAsAttributeString(), and isInMap().

XMLNamespaceMap::const_iterator ncml_module::XMLNamespaceMap::find ( const string &  prefix) const

Return the iterator to the element or end() if not found.

Definition at line 406 of file XMLHelpers.cc.

References begin(), and end().

Referenced by isInMap().

Here is the call graph for this function:

void ncml_module::XMLNamespaceMap::fromSAX2Namespaces ( const xmlChar **  pNamespaces,
int  numNamespaces 
)

Read them all in from the xmlChar array.

Definition at line 369 of file XMLHelpers.cc.

References addNamespace(), clear(), and ncml_module::XMLNamespace::fromSAX2Namespace().

Here is the call graph for this function:

string ncml_module::XMLNamespaceMap::getAllNamespacesAsAttributeString ( ) const

Get a big string full of xmlns:prefix="uri" attributes, separated by spaces.

Definition at line 382 of file XMLHelpers.cc.

References begin(), end(), and ncml_module::XMLNamespace::getAsAttributeString().

Here is the call graph for this function:

bool ncml_module::XMLNamespaceMap::isInMap ( const string &  prefix) const

Definition at line 420 of file XMLHelpers.cc.

References end(), and find().

Here is the call graph for this function:

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

Definition at line 358 of file XMLHelpers.cc.


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