textwolf  0.2
Public Member Functions | List of all members
textwolf::TagStack Class Reference

stack of tag names More...

#include <xmltagstack.hpp>

Inheritance diagram for textwolf::TagStack:
textwolf::throws_exception

Public Member Functions

 ~TagStack ()
 Destructor. More...
 
 TagStack ()
 Default constructor. More...
 
 TagStack (const TagStack &o)
 Copy constructor. More...
 
void push (const char *pp, std::size_t nn)
 Push a tag on top. More...
 
bool top (const void *&element, std::size_t &elementsize)
 Get the topmost tag. More...
 
void pop ()
 Pop (remove) the topmost tag. More...
 
bool empty () const
 Find out if the stack is empty. More...
 
void clear ()
 

Additional Inherited Members

- Public Types inherited from textwolf::throws_exception
enum  Cause {
  Unknown, DimOutOfRange, StateNumbersNotAscending, InvalidParamState,
  InvalidParamChar, DuplicateStateTransition, InvalidState, IllegalParam,
  IllegalAttributeName, OutOfMem, ArrayBoundsReadWrite, NotAllowedOperation,
  FileReadError, IllegalXmlHeader, InvalidTagOffset, CorruptTagStack,
  CodePageIndexNotSupported
}
 Enumeration of error cases. More...
 

Detailed Description

stack of tag names

Constructor & Destructor Documentation

textwolf::TagStack::~TagStack ( )
inline

Destructor.

textwolf::TagStack::TagStack ( )
inline

Default constructor.

textwolf::TagStack::TagStack ( const TagStack o)
inline

Copy constructor.

Member Function Documentation

void textwolf::TagStack::clear ( )
inline
bool textwolf::TagStack::empty ( ) const
inline

Find out if the stack is empty.

Returns
true if yes
void textwolf::TagStack::pop ( )
inline

Pop (remove) the topmost tag.

void textwolf::TagStack::push ( const char *  pp,
std::size_t  nn 
)
inline

Push a tag on top.

Parameters
[out]pppointer to tag value to push
[out]nnsize of tag value to push in bytes
bool textwolf::TagStack::top ( const void *&  element,
std::size_t &  elementsize 
)
inline

Get the topmost tag.

Parameters
[out]elementpointer to topmost tag value
[out]elementsizesize of topmost tag value in bytes
Returns
true on success, false if the stack is empty

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