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

Public Member Functions

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)

Protected Types

enum  LookaheadParsingState {
  kInit , kError , kHasNull , kHasBool ,
  kHasNumber , kHasString , kHasKey , kEnteringObject ,
  kExitingObject , kEnteringArray , kExitingArray
}

Protected Member Functions

 LookaheadParserHandler (char *str)
void ParseNext ()

Protected Attributes

Value v_
LookaheadParsingState st_
Reader r_
InsituStringStream ss_

Static Protected Attributes

static const int parseFlags = kParseDefaultFlags | kParseInsituFlag

Member Enumeration Documentation

◆ LookaheadParsingState

Enumerator
kInit 
kError 
kHasNull 
kHasBool 
kHasNumber 
kHasString 
kHasKey 
kEnteringObject 
kExitingObject 
kEnteringArray 
kExitingArray 

Constructor & Destructor Documentation

◆ LookaheadParserHandler()

LookaheadParserHandler::LookaheadParserHandler ( char * str)
protected

Member Function Documentation

◆ Bool()

bool LookaheadParserHandler::Bool ( bool b)
inline

◆ Double()

bool LookaheadParserHandler::Double ( double d)
inline

◆ EndArray()

bool LookaheadParserHandler::EndArray ( SizeType )
inline

◆ EndObject()

bool LookaheadParserHandler::EndObject ( SizeType )
inline

◆ Int()

bool LookaheadParserHandler::Int ( int i)
inline

◆ Int64()

bool LookaheadParserHandler::Int64 ( int64_t i)
inline

◆ Key()

bool LookaheadParserHandler::Key ( const char * str,
SizeType length,
bool  )
inline

◆ Null()

bool LookaheadParserHandler::Null ( )
inline

◆ ParseNext()

void LookaheadParserHandler::ParseNext ( )
protected

◆ RawNumber()

bool LookaheadParserHandler::RawNumber ( const char * ,
SizeType ,
bool  )
inline

◆ StartArray()

bool LookaheadParserHandler::StartArray ( )
inline

◆ StartObject()

bool LookaheadParserHandler::StartObject ( )
inline

◆ String()

bool LookaheadParserHandler::String ( const char * str,
SizeType length,
bool  )
inline

◆ Uint()

bool LookaheadParserHandler::Uint ( unsigned u)
inline

◆ Uint64()

bool LookaheadParserHandler::Uint64 ( uint64_t u)
inline

Member Data Documentation

◆ parseFlags

const int LookaheadParserHandler::parseFlags = kParseDefaultFlags | kParseInsituFlag
staticprotected

◆ r_

Reader LookaheadParserHandler::r_
protected

◆ ss_

InsituStringStream LookaheadParserHandler::ss_
protected

◆ st_

LookaheadParsingState LookaheadParserHandler::st_
protected

◆ v_

Value LookaheadParserHandler::v_
protected

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