ulxr::ValueParserBase Class Reference
[Low-level parser classes]

Base class for WBXML RPC parsing. More...

#include <ulxr_valueparse_base.h>

Inheritance diagram for ulxr::ValueParserBase:

Inheritance graph
[legend]
List of all members.

Public Types

enum  State {
  eValue = XmlParserBase::eXmlParserLast, eArray, eData, eStruct,
  eMember, eName, eBoolean, eInt,
  eI4, eDouble, eString, eBase64,
  eDate, eValueParserLast
}

Public Member Functions

virtual ~ValueParserBase ()
 Destroy parser.
Value getValue () const
 Gets the final Value after parsing.

Protected Member Functions

virtual ValueStategetTopValueState () const=0
 Gets a pointer to the topmost ValueState.

Friends

class ValueState

Classes

class  ArrayState
 Helper class to represent the data of the current parsing step when the xml element is an Array. More...
class  MemberState
 Helper class to represent the data of the current parsing step when the xml element is a Struct. More...
class  ValueState
 Helper class to represent the data of the current parsing step. More...

Detailed Description

Base class for WBXML RPC parsing.

IMPORTANT: The current "Value" is moved around via pointers and is not automatically destroyed. The object taking over the "Value" resp. the object storing the value somehow else must "delete" the "Value" it gets.

See also:
ArrayState::takeValue

Definition at line 52 of file ulxr_valueparse_base.h.


Member Enumeration Documentation

enum ulxr::ValueParserBase::State

Enumerator:
eValue 
eArray 
eData 
eStruct 
eMember 
eName 
eBoolean 
eInt 
eI4 
eDouble 
eString 
eBase64 
eDate 
eValueParserLast 

Definition at line 65 of file ulxr_valueparse_base.h.


Constructor & Destructor Documentation

ulxr::ValueParserBase::~ValueParserBase (  )  [virtual]

Destroy parser.

Definition at line 41 of file ulxr_valueparse_base.cpp.


Member Function Documentation

Value ulxr::ValueParserBase::getValue (  )  const

Gets the final Value after parsing.

Returns:
the Value.

Definition at line 46 of file ulxr_valueparse_base.cpp.

References ULXR_PCHAR, and ULXR_TRACE.

virtual ValueState* ulxr::ValueParserBase::getTopValueState (  )  const [protected, pure virtual]

Gets a pointer to the topmost ValueState.

Returns:
pointer to ValueState

Implemented in ulxr::ValueParser, and ulxr::ValueParserWb.


Friends And Related Function Documentation

friend class ValueState [friend]

Definition at line 189 of file ulxr_valueparse_base.h.

Referenced by ulxr::ValueParser::ValueParser(), and ulxr::ValueParserWb::ValueParserWb().


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