ulxr::XmlParserBase::ParserState Class Reference

Helper class to represent the data of the current parsing step. More...

#include <ulxr_xmlparse_base.h>

Inheritance diagram for ulxr::XmlParserBase::ParserState:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 ParserState (unsigned st)
 Constructs a ParserState.
virtual ~ParserState ()
 Destroys the ParserState.
unsigned getParserState () const
 Gets the ParserState of this ParserState.
unsigned getPrevParserState () const
 Gets the privious ParserState.
void setPrevParserState (unsigned prev)
 Sets the privious ParserState.
virtual CppString getStateName () const
 Gets the name of the ParserState.
void appendCharData (const XML_Char *s, int len)
 Appends some characters of the ParserState.
void appendCharData (const std::string &s)
 Appends some characters of the ParserState.
CppString getCharData () const
 Gets the characters of the ParserState.

Private Member Functions

 ParserState (const ParserState &)
ParserStateoperator= (const ParserState &)

Private Attributes

CppString cdata
unsigned state
unsigned prevstate

Detailed Description

Helper class to represent the data of the current parsing step.

Definition at line 117 of file ulxr_xmlparse_base.h.


Constructor & Destructor Documentation

ulxr::XmlParserBase::ParserState::ParserState ( unsigned  st  ) 

Constructs a ParserState.

Parameters:
st the actual ParserState

Definition at line 75 of file ulxr_xmlparse_base.cpp.

ulxr::XmlParserBase::ParserState::~ParserState (  )  [virtual]

Destroys the ParserState.

Definition at line 82 of file ulxr_xmlparse_base.cpp.

ulxr::XmlParserBase::ParserState::ParserState ( const ParserState  )  [private]


Member Function Documentation

unsigned ulxr::XmlParserBase::ParserState::getParserState (  )  const

Gets the ParserState of this ParserState.

Returns:
the actual ParserState

Definition at line 87 of file ulxr_xmlparse_base.cpp.

unsigned ulxr::XmlParserBase::ParserState::getPrevParserState (  )  const

Gets the privious ParserState.

Returns:
the previous ParserState

Definition at line 93 of file ulxr_xmlparse_base.cpp.

void ulxr::XmlParserBase::ParserState::setPrevParserState ( unsigned  prev  ) 

Sets the privious ParserState.

Parameters:
prev the previous ParserState

Definition at line 99 of file ulxr_xmlparse_base.cpp.

CppString ulxr::XmlParserBase::ParserState::getStateName (  )  const [virtual]

Gets the name of the ParserState.

Useful only for debugging.

Returns:
the name of actual ParserState

Reimplemented in ulxr::ValueParserBase::ValueState.

Definition at line 105 of file ulxr_xmlparse_base.cpp.

References ULXR_PCHAR.

void ulxr::XmlParserBase::ParserState::appendCharData ( const XML_Char *  s,
int  len 
)

Appends some characters of the ParserState.

This is a part of the data of an xml rpc element.

Parameters:
s the current chunk of text
len valid len.

Definition at line 120 of file ulxr_xmlparse_base.cpp.

References ULXR_PCHAR, ULXR_TRACE, and ulxr::utf8ToUnicode().

void ulxr::XmlParserBase::ParserState::appendCharData ( const std::string &  s  ) 

Appends some characters of the ParserState.

This is a part of the data of an xml rpc element.

Parameters:
s the current chunk of text

Definition at line 111 of file ulxr_xmlparse_base.cpp.

References ULXR_PCHAR, and ULXR_TRACE.

CppString ulxr::XmlParserBase::ParserState::getCharData (  )  const

Gets the characters of the ParserState.

Returns:
the data element

Definition at line 131 of file ulxr_xmlparse_base.cpp.

References ULXR_PCHAR, and ULXR_TRACE.

ParserState& ulxr::XmlParserBase::ParserState::operator= ( const ParserState  )  [private]


Member Data Documentation

CppString ulxr::XmlParserBase::ParserState::cdata [private]

Definition at line 174 of file ulxr_xmlparse_base.h.

unsigned ulxr::XmlParserBase::ParserState::state [private]

Definition at line 175 of file ulxr_xmlparse_base.h.

unsigned ulxr::XmlParserBase::ParserState::prevstate [private]

Definition at line 176 of file ulxr_xmlparse_base.h.


The documentation for this class was generated from the following files:
Generated on Sun Aug 19 20:09:14 2007 for ulxmlrpcpp by  doxygen 1.5.1