#include <ulxr_valueparse_base.h>
Inheritance diagram for ulxr::ValueParserBase::ValueState:
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. | |
Value * | getValue () const |
Gets the Value of this state. | |
Protected Attributes | |
Value * | value |
Private Member Functions | |
ValueState (const ValueState &) | |
ValueState & | operator= (const ValueState &) |
Private Attributes | |
CppString | name |
Definition at line 77 of file ulxr_valueparse_base.h.
ulxr::ValueParserBase::ValueState::ValueState | ( | unsigned | st | ) |
Constructs an ValueState.
st | the actual state |
Definition at line 66 of file ulxr_valueparse_base.cpp.
ulxr::ValueParserBase::ValueState::ValueState | ( | const ValueState & | ) | [private] |
void ulxr::ValueParserBase::ValueState::takeValue | ( | Value * | val | ) | [virtual] |
Transfers a Value into the ValueState.
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.
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.
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
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
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.
Definition at line 123 of file ulxr_valueparse_base.cpp.
ValueState& ulxr::ValueParserBase::ValueState::operator= | ( | const ValueState & | ) | [private] |
Value* ulxr::ValueParserBase::ValueState::value [protected] |
Definition at line 122 of file ulxr_valueparse_base.h.
Referenced by ulxr::ValueParserBase::MemberState::MemberState().
Definition at line 126 of file ulxr_valueparse_base.h.