Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

NsStack Class Reference

Namespace stack for building a SOAP Envelop. More...

#include <NsStack.hpp>

List of all members.

Public Methods

 NsStack ()
 Constructor for the NsStack. More...

void Add (const std::string &uri, const std::string &prefix)
 Add namesppace prefix for a URI. More...

void Push ()
 push an empty map on the stack. More...

NsMapPeek ()
 Get map at the top. More...

void Pop ()
 Pop a namespace mapping. More...

const std::string GetPrefix (const std::string &namespaceURI)
 Get a prefix for a given namespace URI. More...

const std::string GetNamespaceURI (const std::string &prefix)
 Get a namespace URI for a prefix. More...


Private Attributes

std::vector<NsMapNs
 Holds stack elements. More...

int Indx
 Current index of the top. More...


Detailed Description

Namespace stack for building a SOAP Envelop.

Namespace stack for building a SOAP Envelop; each namespace prefix has associated namespace URI.

Definition at line 100 of file NsStack.hpp.


Constructor & Destructor Documentation

NsStack::NsStack ( ) [inline]
 

Constructor for the NsStack.

Definition at line 104 of file NsStack.hpp.


Member Function Documentation

void NsStack::Add ( const std::string & uri,
const std::string & prefix )
 

Add namesppace prefix for a URI.

Add namesppace prefix mapping for a URI

Definition at line 99 of file NsStack.cpp.

Referenced by XMLSerializer::RegisterPrefixForURI(), and XMLDeSerializer::RegisterPrefixForURI().

const std::string NsStack::GetNamespaceURI ( const std::string & prefix )
 

Get a namespace URI for a prefix.

Get a namespace URI for a prefix.

Definition at line 169 of file NsStack.cpp.

Referenced by XMLDeSerializer::GetQNameFromStr().

const std::string NsStack::GetPrefix ( const std::string & namespaceURI )
 

Get a prefix for a given namespace URI.

Get a prefix for a given namespace URI

Definition at line 153 of file NsStack.cpp.

Referenced by XMLSerializer::GetPrefixForURI(), and XMLDeSerializer::QNameToStr().

NsMap * NsStack::Peek ( )
 

Get map at the top.

Get map at the top of the stack

Definition at line 130 of file NsStack.cpp.

Referenced by Add(), and XMLSerializer::Append().

void NsStack::Pop ( )
 

Pop a namespace mapping.

Remove a namespace mapping

Definition at line 139 of file NsStack.cpp.

Referenced by XMLSerializer::EndElem().

void NsStack::Push ( )
 

push an empty map on the stack.

push an empty map on the stack

Definition at line 118 of file NsStack.cpp.

Referenced by XMLSerializer::Append().


Member Data Documentation

int NsStack::Indx [private]
 

Current index of the top.

Definition at line 126 of file NsStack.hpp.

std::vector< NsMap > NsStack::Ns<NsMap> [private]
 

Holds stack elements.

Definition at line 125 of file NsStack.hpp.


The documentation for this class was generated from the following files: Axis C++ Client Lib - User's Guide

Copyright © 2001 SL_OpenSource XML Project. All Rights Reserved