Guitarix
gx_system::JsonSubParser Class Reference

#include <gx_json.h>

Inheritance diagram for gx_system::JsonSubParser:
gx_system::JsonParser

Public Member Functions

 JsonSubParser (JsonParser &jp, streampos pos)
 
 ~JsonSubParser ()
 
- Public Member Functions inherited from gx_system::JsonParser
 JsonParser (istream *i=0)
 
virtual ~JsonParser ()
 
virtual void close ()
 
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)
 

Private Attributes

std::streampos position
 

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 194 of file gx_json.h.

Constructor & Destructor Documentation

◆ JsonSubParser()

gx_system::JsonSubParser::JsonSubParser ( JsonParser jp,
streampos  pos 
)

◆ ~JsonSubParser()

gx_system::JsonSubParser::~JsonSubParser ( )

Member Data Documentation

◆ position

std::streampos gx_system::JsonSubParser::position
private

Definition at line 196 of file gx_json.h.


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