Guitarix
gx_system::JsonReader Class Reference
Inheritance diagram for gx_system::JsonReader:
Collaboration diagram for gx_system::JsonReader:

Public Member Functions

 JsonReader (istream *is)
 
 ~JsonReader ()
 
void close ()
 
- Public Member Functions inherited from gx_system::JsonParser
 JsonParser (istream *i=0)
 
virtual ~JsonParser ()
 
void reset ()
 
bool is_closed ()
 
void set_stream (istream *i)
 
istream * get_stream ()
 
const char * get_token_name (token tok)
 
bool good ()
 
token next (token expect=no_token)
 
token peek ()
 
streampos get_streampos ()
 
void set_streampos (streampos pos)
 
void check_expect (token expect)
 
string current_value () const
 
int current_value_int ()
 
unsigned int current_value_uint ()
 
float current_value_float ()
 
double current_value_double ()
 
bool read_kv (const char *key, float &v)
 
bool read_kv (const char *key, double &v)
 
bool read_kv (const char *key, int &i)
 
bool read_kv (const char *key, unsigned int &i)
 
bool read_kv (const char *key, std::string &s)
 
bool read_kv (const char *key, Glib::ustring &s)
 
template<class T >
bool read_kv (const char *key, T &v)
 
void copy_object (JsonWriter &jw)
 
void skip_object ()
 
void throw_unexpected (token expect)
 

Additional Inherited Members

- Public Types inherited from gx_system::JsonParser
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
}
 

Detailed Description

Definition at line 703 of file gx_json.cpp.

Constructor & Destructor Documentation

◆ JsonReader()

gx_system::JsonReader::JsonReader ( istream *  is)
inline

Definition at line 707 of file gx_json.cpp.

◆ ~JsonReader()

gx_system::JsonReader::~JsonReader ( )

Definition at line 710 of file gx_json.cpp.

Member Function Documentation

◆ close()

void gx_system::JsonReader::close ( )
virtual

Reimplemented from gx_system::JsonParser.

Definition at line 714 of file gx_json.cpp.

Referenced by ~JsonReader().


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