Monero
Loading...
Searching...
No Matches
LookaheadParser Class Reference
Inheritance diagram for LookaheadParser:
Collaboration diagram for LookaheadParser:

Public Member Functions

 LookaheadParser (char *str)
bool EnterObject ()
bool EnterArray ()
const char * NextObjectKey ()
bool NextArrayValue ()
int GetInt ()
double GetDouble ()
const char * GetString ()
bool GetBool ()
void GetNull ()
void SkipObject ()
void SkipArray ()
void SkipValue ()
Value * PeekValue ()
int PeekType ()
bool IsValid ()

Protected Member Functions

void SkipOut (int depth)
Protected Member Functions inherited from LookaheadParserHandler
 LookaheadParserHandler (char *str)
void ParseNext ()
bool Null ()
bool Bool (bool b)
bool Int (int i)
bool Uint (unsigned u)
bool Int64 (int64_t i)
bool Uint64 (uint64_t u)
bool Double (double d)
bool RawNumber (const char *, SizeType, bool)
bool String (const char *str, SizeType length, bool)
bool StartObject ()
bool Key (const char *str, SizeType length, bool)
bool EndObject (SizeType)
bool StartArray ()
bool EndArray (SizeType)

Additional Inherited Members

Protected Types inherited from LookaheadParserHandler
enum  LookaheadParsingState {
  kInit , kError , kHasNull , kHasBool ,
  kHasNumber , kHasString , kHasKey , kEnteringObject ,
  kExitingObject , kEnteringArray , kExitingArray
}
Protected Attributes inherited from LookaheadParserHandler
Value v_
LookaheadParsingState st_
Reader r_
InsituStringStream ss_
Static Protected Attributes inherited from LookaheadParserHandler
static const int parseFlags = kParseDefaultFlags | kParseInsituFlag

Constructor & Destructor Documentation

◆ LookaheadParser()

LookaheadParser::LookaheadParser ( char * str)
inline

Member Function Documentation

◆ EnterArray()

bool LookaheadParser::EnterArray ( )

◆ EnterObject()

bool LookaheadParser::EnterObject ( )

◆ GetBool()

bool LookaheadParser::GetBool ( )

◆ GetDouble()

double LookaheadParser::GetDouble ( )

◆ GetInt()

int LookaheadParser::GetInt ( )

◆ GetNull()

void LookaheadParser::GetNull ( )

◆ GetString()

const char * LookaheadParser::GetString ( )

◆ IsValid()

bool LookaheadParser::IsValid ( )
inline

◆ NextArrayValue()

bool LookaheadParser::NextArrayValue ( )

◆ NextObjectKey()

const char * LookaheadParser::NextObjectKey ( )

◆ PeekType()

int LookaheadParser::PeekType ( )

◆ PeekValue()

Value * LookaheadParser::PeekValue ( )

◆ SkipArray()

void LookaheadParser::SkipArray ( )

◆ SkipObject()

void LookaheadParser::SkipObject ( )

◆ SkipOut()

void LookaheadParser::SkipOut ( int depth)
protected

◆ SkipValue()

void LookaheadParser::SkipValue ( )

The documentation for this class was generated from the following file: