Public Member Functions | Private Attributes

ACEXML_Namespace_Context_Stack Class Reference

ACEXML_Namespace_Context_Stack implements a simple stack that ACEXML_NamespaceSupport uses to keep track of namespace scopes. More...

#include <ACEXML/common/NamespaceSupport.h>

Collaboration diagram for ACEXML_Namespace_Context_Stack:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

ACEXML_Namespace_Context_Stack implements a simple stack that ACEXML_NamespaceSupport uses to keep track of namespace scopes.

See also:
ACEXML_NamespaceSupport

Definition at line 62 of file NamespaceSupport.h.


Constructor & Destructor Documentation

ACEXML_Namespace_Context_Stack::ACEXML_Namespace_Context_Stack ( void   ) 

Default constructor.

Definition at line 17 of file NamespaceSupport.cpp.

{
}

ACEXML_Namespace_Context_Stack::~ACEXML_Namespace_Context_Stack ( void   ) 

Destructor.

Definition at line 21 of file NamespaceSupport.cpp.

{
  // Clean up stuff.
}


Member Function Documentation

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.

{
  if (this->stack_.size() <= 0)
    return 0;

  ACEXML_NS_CONTEXT* temp = 0;
  int retval = this->stack_.pop (temp);
  if (retval != 0)
    {
      ACE_ERROR ((LM_ERROR, "Unable to pop Namespace context from stack\n"));
      return 0;
    }
  return temp;
}

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.

{
  return (this->stack_.push (nsc) < 0);
}


Member Data Documentation

Internal stack structure to hold namespace context.

Definition at line 79 of file NamespaceSupport.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines