#include <ulxr_valueparse_base.h>
Inheritance diagram for ulxr::ValueParserBase:
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 ValueState * | getTopValueState () 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... |
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.
Definition at line 52 of file ulxr_valueparse_base.h.
eValue | |
eArray | |
eData | |
eStruct | |
eMember | |
eName | |
eBoolean | |
eInt | |
eI4 | |
eDouble | |
eString | |
eBase64 | |
eDate | |
eValueParserLast |
Definition at line 65 of file ulxr_valueparse_base.h.
ulxr::ValueParserBase::~ValueParserBase | ( | ) | [virtual] |
Value ulxr::ValueParserBase::getValue | ( | ) | const |
Gets the final Value after parsing.
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.
Implemented in ulxr::ValueParser, and ulxr::ValueParserWb.
friend class ValueState [friend] |
Definition at line 189 of file ulxr_valueparse_base.h.
Referenced by ulxr::ValueParser::ValueParser(), and ulxr::ValueParserWb::ValueParserWb().