ulxr::ValueParserBase::ValueState Class Reference

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

#include <ulxr_valueparse_base.h>

Inheritance diagram for ulxr::ValueParserBase::ValueState:

Inheritance graph
[legend]
Collaboration diagram for ulxr::ValueParserBase::ValueState:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ValueState (unsigned st)
 Constructs an ValueState.
virtual void takeValue (Value *val)
 Transfers a Value into the ValueState.
virtual void takeName (const CppString &name)
 Transfers a member name into the ValueState.
virtual CppString getStateName () const
 Gets the name of the state.
CppString getName () const
 Gets the name of the member.
void setName (const CppString &name)
 Sets the name of the member.
ValuegetValue () const
 Gets the Value of this state.

Protected Attributes

Valuevalue

Private Member Functions

 ValueState (const ValueState &)
ValueStateoperator= (const ValueState &)

Private Attributes

CppString name

Detailed Description

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

Definition at line 77 of file ulxr_valueparse_base.h.


Constructor & Destructor Documentation

ulxr::ValueParserBase::ValueState::ValueState ( unsigned  st  ) 

Constructs an ValueState.

Parameters:
st the actual state

Definition at line 66 of file ulxr_valueparse_base.cpp.

ulxr::ValueParserBase::ValueState::ValueState ( const ValueState  )  [private]


Member Function Documentation

void ulxr::ValueParserBase::ValueState::takeValue ( Value val  )  [virtual]

Transfers a Value into the ValueState.

Parameters:
val the value

Reimplemented in ulxr::ValueParserBase::MemberState, ulxr::ValueParserBase::ArrayState, ulxr::ValueParserWb::IntegerState, and ulxr::ValueParserWb::BooleanState.

Definition at line 73 of file ulxr_valueparse_base.cpp.

References ULXR_PCHAR, and ULXR_TRACE.

void ulxr::ValueParserBase::ValueState::takeName ( const CppString name  )  [virtual]

Transfers a member name into the ValueState.

Used only for Structs.

Parameters:
name the member name

Reimplemented in ulxr::ValueParserBase::MemberState.

Definition at line 106 of file ulxr_valueparse_base.cpp.

CppString ulxr::ValueParserBase::ValueState::getStateName (  )  const [virtual]

Gets the name of the state.

Useful only for debugging.

Returns:
the name of actual state

Reimplemented from ulxr::XmlParserBase::ParserState.

Definition at line 80 of file ulxr_valueparse_base.cpp.

References ulxr::ValueParserBase::eArray, ulxr::ValueParserBase::eBase64, ulxr::ValueParserBase::eBoolean, ulxr::ValueParserBase::eData, ulxr::ValueParserBase::eDate, ulxr::ValueParserBase::eDouble, ulxr::ValueParserBase::eI4, ulxr::ValueParserBase::eInt, ulxr::ValueParserBase::eMember, ulxr::ValueParserBase::eName, ulxr::XmlParserBase::eNone, ulxr::ValueParserBase::eString, ulxr::ValueParserBase::eStruct, ulxr::ValueParserBase::eValue, ulxr::ValueParserBase::eValueParserLast, and ULXR_PCHAR.

CppString ulxr::ValueParserBase::ValueState::getName (  )  const

Gets the name of the member.

Used only with Structs

Returns:
the member name

Definition at line 111 of file ulxr_valueparse_base.cpp.

void ulxr::ValueParserBase::ValueState::setName ( const CppString name  ) 

Sets the name of the member.

Used only with Structs

Parameters:
name the member name

Definition at line 117 of file ulxr_valueparse_base.cpp.

Value * ulxr::ValueParserBase::ValueState::getValue (  )  const

Gets the Value of this state.

Returns:
the Value.

Definition at line 123 of file ulxr_valueparse_base.cpp.

ValueState& ulxr::ValueParserBase::ValueState::operator= ( const ValueState  )  [private]


Member Data Documentation

Value* ulxr::ValueParserBase::ValueState::value [protected]

Definition at line 122 of file ulxr_valueparse_base.h.

Referenced by ulxr::ValueParserBase::MemberState::MemberState().

CppString ulxr::ValueParserBase::ValueState::name [private]

Definition at line 126 of file ulxr_valueparse_base.h.


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