iv::JsonLex Class Reference
#include <JsonLex.hpp>
Public Types | |
enum | Token { Integer, Double, String, Bool, Null, ArrayBegin, ArrayEnd, TableBegin, TableEnd, TableKey, Eof } |
Public Member Functions | |
JsonLex (Instance *inst) | |
Instance * | instance () const |
const Lex & | lex () const |
void | Init (std::istream &in) |
bool | Failed () |
void | LogicFail (const char *message) |
bool | IsNext (Token) |
void | Accept (Token) |
std::string | AcceptTableKey () |
int | AcceptInteger () |
double | AcceptDouble () |
std::string | AcceptString () |
bool | AcceptBool () |
void | AcceptNull () |
Public Attributes | |
ClientMarker | cm |
Detailed Description
Definition at line 10 of file JsonLex.hpp.
Member Enumeration Documentation
◆ Token
enum iv::JsonLex::Token |
Enumerator | |
---|---|
Integer | |
Double | |
String | |
Bool | |
Null | |
ArrayBegin | |
ArrayEnd | |
TableBegin | |
TableEnd | |
TableKey | |
Eof |
Definition at line 15 of file JsonLex.hpp.
Constructor & Destructor Documentation
◆ JsonLex()
iv::JsonLex::JsonLex | ( | Instance * | inst | ) |
Definition at line 6 of file JsonLex.cpp.
Member Function Documentation
◆ instance()
Instance * iv::JsonLex::instance | ( | ) | const |
Definition at line 26 of file JsonLex.cpp.
◆ lex()
const Lex & iv::JsonLex::lex | ( | ) | const |
Definition at line 31 of file JsonLex.cpp.
◆ Init()
void iv::JsonLex::Init | ( | std::istream & | in | ) |
Definition at line 36 of file JsonLex.cpp.
◆ Failed()
bool iv::JsonLex::Failed | ( | ) |
Definition at line 43 of file JsonLex.cpp.
◆ LogicFail()
|
inline |
Definition at line 40 of file JsonLex.hpp.
◆ IsNext()
bool iv::JsonLex::IsNext | ( | Token | token | ) |
Definition at line 48 of file JsonLex.cpp.
◆ Accept()
void iv::JsonLex::Accept | ( | Token | token | ) |
Definition at line 132 of file JsonLex.cpp.
◆ AcceptTableKey()
std::string iv::JsonLex::AcceptTableKey | ( | ) |
Definition at line 212 of file JsonLex.cpp.
◆ AcceptInteger()
int iv::JsonLex::AcceptInteger | ( | ) |
Definition at line 226 of file JsonLex.cpp.
◆ AcceptDouble()
double iv::JsonLex::AcceptDouble | ( | ) |
Definition at line 239 of file JsonLex.cpp.
◆ AcceptString()
std::string iv::JsonLex::AcceptString | ( | ) |
Definition at line 252 of file JsonLex.cpp.
◆ AcceptBool()
bool iv::JsonLex::AcceptBool | ( | ) |
Definition at line 265 of file JsonLex.cpp.
◆ AcceptNull()
void iv::JsonLex::AcceptNull | ( | ) |
Definition at line 288 of file JsonLex.cpp.
Member Data Documentation
◆ cm
ClientMarker iv::JsonLex::cm |
Definition at line 13 of file JsonLex.hpp.
The documentation for this class was generated from the following files:
- ivorium_core/Parsing/JsonLex.hpp
- ivorium_core/Parsing/JsonLex.cpp