#include <gx_json.h>
|
enum | token {
no_token = 0x0000
, end_token = 0x0001
, begin_object = 0x002
, end_object = 0x0004
,
begin_array = 0x0008
, end_array = 0x0010
, value_string = 0x0020
, value_number = 0x0040
,
value_key = 0x0080
, value_null = 0x0100
, value_false = 0x0200
, value_true = 0x0400
,
value_bool = 0x0600
} |
|
Definition at line 112 of file gx_json.h.
◆ token
Enumerator |
---|
no_token | |
end_token | |
begin_object | |
end_object | |
begin_array | |
end_array | |
value_string | |
value_number | |
value_key | |
value_null | |
value_false | |
value_true | |
value_bool | |
Definition at line 121 of file gx_json.h.
◆ JsonParser()
gx_system::JsonParser::JsonParser |
( |
istream * |
i = 0 | ) |
|
◆ ~JsonParser()
virtual gx_system::JsonParser::~JsonParser |
( |
| ) |
|
|
virtual |
◆ check_expect()
void gx_system::JsonParser::check_expect |
( |
token |
expect | ) |
|
|
inline |
◆ close()
virtual void gx_system::JsonParser::close |
( |
| ) |
|
|
virtual |
◆ copy_object()
void gx_system::JsonParser::copy_object |
( |
JsonWriter & |
jw | ) |
|
◆ current_value()
string gx_system::JsonParser::current_value |
( |
| ) |
const |
|
inline |
◆ current_value_double()
double gx_system::JsonParser::current_value_double |
( |
| ) |
|
|
inline |
◆ current_value_float()
float gx_system::JsonParser::current_value_float |
( |
| ) |
|
|
inline |
◆ current_value_int()
int gx_system::JsonParser::current_value_int |
( |
| ) |
|
|
inline |
◆ current_value_uint()
unsigned int gx_system::JsonParser::current_value_uint |
( |
| ) |
|
|
inline |
◆ get_stream()
istream * gx_system::JsonParser::get_stream |
( |
| ) |
|
|
inline |
◆ get_streampos()
streampos gx_system::JsonParser::get_streampos |
( |
| ) |
|
|
inline |
◆ get_token_name()
const char * gx_system::JsonParser::get_token_name |
( |
token |
tok | ) |
|
◆ good()
bool gx_system::JsonParser::good |
( |
| ) |
|
|
inline |
◆ is_closed()
bool gx_system::JsonParser::is_closed |
( |
| ) |
|
|
inline |
◆ next()
◆ peek()
token gx_system::JsonParser::peek |
( |
| ) |
|
|
inline |
◆ read_kv() [1/7]
bool gx_system::JsonParser::read_kv |
( |
const char * |
key, |
|
|
double & |
v |
|
) |
| |
◆ read_kv() [2/7]
bool gx_system::JsonParser::read_kv |
( |
const char * |
key, |
|
|
float & |
v |
|
) |
| |
◆ read_kv() [3/7]
bool gx_system::JsonParser::read_kv |
( |
const char * |
key, |
|
|
Glib::ustring & |
s |
|
) |
| |
◆ read_kv() [4/7]
bool gx_system::JsonParser::read_kv |
( |
const char * |
key, |
|
|
int & |
i |
|
) |
| |
◆ read_kv() [5/7]
bool gx_system::JsonParser::read_kv |
( |
const char * |
key, |
|
|
std::string & |
s |
|
) |
| |
◆ read_kv() [6/7]
template<class T >
bool gx_system::JsonParser::read_kv |
( |
const char * |
key, |
|
|
T & |
v |
|
) |
| |
|
inline |
◆ read_kv() [7/7]
bool gx_system::JsonParser::read_kv |
( |
const char * |
key, |
|
|
unsigned int & |
i |
|
) |
| |
◆ read_next()
void gx_system::JsonParser::read_next |
( |
| ) |
|
|
private |
◆ read_value_token()
token gx_system::JsonParser::read_value_token |
( |
char |
c | ) |
|
|
private |
◆ readcode()
const char * gx_system::JsonParser::readcode |
( |
| ) |
|
|
private |
◆ readnumber()
string gx_system::JsonParser::readnumber |
( |
char |
c | ) |
|
|
private |
◆ readstring()
string gx_system::JsonParser::readstring |
( |
| ) |
|
|
private |
◆ reset()
void gx_system::JsonParser::reset |
( |
| ) |
|
◆ set_stream()
void gx_system::JsonParser::set_stream |
( |
istream * |
i | ) |
|
|
inline |
◆ set_streampos()
void gx_system::JsonParser::set_streampos |
( |
streampos |
pos | ) |
|
◆ skip_object()
void gx_system::JsonParser::skip_object |
( |
| ) |
|
◆ throw_unexpected()
void gx_system::JsonParser::throw_unexpected |
( |
token |
expect | ) |
|
◆ cur_tok
token gx_system::JsonParser::cur_tok |
|
private |
◆ depth
int gx_system::JsonParser::depth |
|
private |
◆ is
istream* gx_system::JsonParser::is |
|
private |
◆ log_tok
string gx_system::JsonParser::log_tok |
|
private |
◆ next_depth
int gx_system::JsonParser::next_depth |
|
private |
◆ next_pos
streampos gx_system::JsonParser::next_pos |
|
private |
◆ next_str
string gx_system::JsonParser::next_str |
|
private |
◆ next_tok
token gx_system::JsonParser::next_tok |
|
private |
◆ nl
bool gx_system::JsonParser::nl |
|
private |
◆ str
string gx_system::JsonParser::str |
|
private |
The documentation for this class was generated from the following file: