#include <ACEXML/common/NamespaceSupport.h>
Public Member Functions | |
ACEXML_Namespace_Context_Stack (void) | |
Default constructor. | |
~ACEXML_Namespace_Context_Stack (void) | |
Destructor. | |
int | push (ACEXML_NS_CONTEXT *old) |
Push the old namespace before entering into a new namespace scope. | |
ACEXML_NS_CONTEXT * | pop (void) |
Pop the old namespace when exiting a namespace scope. | |
Private Attributes | |
ACE_Unbounded_Stack< ACEXML_NS_CONTEXT * > | stack_ |
Internal stack structure to hold namespace context. |
Definition at line 62 of file NamespaceSupport.h.
ACEXML_Namespace_Context_Stack::ACEXML_Namespace_Context_Stack | ( | void | ) |
ACEXML_Namespace_Context_Stack::~ACEXML_Namespace_Context_Stack | ( | void | ) |
ACEXML_NS_CONTEXT * ACEXML_Namespace_Context_Stack::pop | ( | void | ) |
Pop the old namespace when exiting a namespace scope.
Definition at line 33 of file NamespaceSupport.cpp.
References ACE_ERROR, LM_ERROR, and stack_.
00034 { 00035 if (this->stack_.size() <= 0) 00036 return 0; 00037 00038 ACEXML_NS_CONTEXT* temp = 0; 00039 int retval = this->stack_.pop (temp); 00040 if (retval != 0) 00041 { 00042 ACE_ERROR ((LM_ERROR, "Unable to pop Namespace context from stack\n")); 00043 return 0; 00044 } 00045 return temp; 00046 }
int ACEXML_Namespace_Context_Stack::push | ( | ACEXML_NS_CONTEXT * | old | ) |
Push the old namespace before entering into a new namespace scope.
Definition at line 27 of file NamespaceSupport.cpp.
Referenced by ACEXML_NamespaceSupport::pushContext().
Internal stack structure to hold namespace context.
Definition at line 79 of file NamespaceSupport.h.
Referenced by pop().