Monero
Public Member Functions | Protected Member Functions | List of all members
LookaheadParser Class Reference
Inheritance diagram for LookaheadParser:
Inheritance graph
[legend]
Collaboration diagram for LookaheadParser:
Collaboration graph
[legend]

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 ()
 
ValuePeekValue ()
 
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: