#include <gx_json.h>
|
| JsonWriter (ostream *o=0, bool enable_newlines=true) |
|
virtual | ~JsonWriter () |
|
void | reset () |
|
void | set_stream (ostream *o) |
|
bool | good () |
|
void | flush () |
|
virtual void | close () |
|
bool | is_closed () |
|
void | write (float v, bool nl=false) |
|
void | write (double v, bool nl=false) |
|
void | write (int i, bool nl=false) |
|
void | write (unsigned int i, bool nl=false) |
|
void | write (const char *p, bool nl=false) |
|
void | write (const string &s, bool nl=false) |
|
void | write_kv (const char *key, float v) |
|
void | write_kv (const char *key, double v) |
|
void | write_kv (const char *key, int i) |
|
void | write_kv (const char *key, unsigned int i) |
|
void | write_kv (const char *key, const char *p) |
|
void | write_kv (const char *key, const std::string &s) |
|
void | write_lit (const string &s, bool nl=false) |
|
void | begin_object (bool nl=false) |
|
void | end_object (bool nl=false) |
|
void | begin_array (bool nl=false) |
|
void | end_array (bool nl=false) |
|
void | write_key (const char *p, bool nl=false) |
|
void | write_key (const string &p, bool nl=false) |
|
void | write_null (bool nl=false) |
|
void | newline () |
|
Definition at line 55 of file gx_json.h.
◆ JsonWriter()
gx_system::JsonWriter::JsonWriter |
( |
ostream * |
o = 0 , |
|
|
bool |
enable_newlines = true |
|
) |
| |
◆ ~JsonWriter()
virtual gx_system::JsonWriter::~JsonWriter |
( |
| ) |
|
|
virtual |
◆ begin_array()
void gx_system::JsonWriter::begin_array |
( |
bool |
nl = false | ) |
|
◆ begin_object()
void gx_system::JsonWriter::begin_object |
( |
bool |
nl = false | ) |
|
◆ close()
virtual void gx_system::JsonWriter::close |
( |
| ) |
|
|
virtual |
◆ end_array()
void gx_system::JsonWriter::end_array |
( |
bool |
nl = false | ) |
|
◆ end_object()
void gx_system::JsonWriter::end_object |
( |
bool |
nl = false | ) |
|
◆ flush()
void gx_system::JsonWriter::flush |
( |
| ) |
|
◆ good()
bool gx_system::JsonWriter::good |
( |
| ) |
|
|
inline |
◆ iminus()
void gx_system::JsonWriter::iminus |
( |
| ) |
|
|
private |
◆ iplus()
void gx_system::JsonWriter::iplus |
( |
| ) |
|
|
private |
◆ is_closed()
bool gx_system::JsonWriter::is_closed |
( |
| ) |
|
|
inline |
◆ komma()
void gx_system::JsonWriter::komma |
( |
| ) |
|
|
private |
◆ newline()
void gx_system::JsonWriter::newline |
( |
| ) |
|
|
inline |
◆ reset()
void gx_system::JsonWriter::reset |
( |
| ) |
|
◆ set_stream()
void gx_system::JsonWriter::set_stream |
( |
ostream * |
o | ) |
|
|
inline |
◆ snl()
void gx_system::JsonWriter::snl |
( |
bool |
v | ) |
|
|
inlineprivate |
◆ space()
void gx_system::JsonWriter::space |
( |
| ) |
|
|
private |
◆ write() [1/6]
void gx_system::JsonWriter::write |
( |
const char * |
p, |
|
|
bool |
nl = false |
|
) |
| |
◆ write() [2/6]
void gx_system::JsonWriter::write |
( |
const string & |
s, |
|
|
bool |
nl = false |
|
) |
| |
|
inline |
◆ write() [3/6]
void gx_system::JsonWriter::write |
( |
double |
v, |
|
|
bool |
nl = false |
|
) |
| |
◆ write() [4/6]
void gx_system::JsonWriter::write |
( |
float |
v, |
|
|
bool |
nl = false |
|
) |
| |
◆ write() [5/6]
void gx_system::JsonWriter::write |
( |
int |
i, |
|
|
bool |
nl = false |
|
) |
| |
◆ write() [6/6]
void gx_system::JsonWriter::write |
( |
unsigned int |
i, |
|
|
bool |
nl = false |
|
) |
| |
◆ write_key() [1/2]
void gx_system::JsonWriter::write_key |
( |
const char * |
p, |
|
|
bool |
nl = false |
|
) |
| |
◆ write_key() [2/2]
void gx_system::JsonWriter::write_key |
( |
const string & |
p, |
|
|
bool |
nl = false |
|
) |
| |
◆ write_kv() [1/6]
void gx_system::JsonWriter::write_kv |
( |
const char * |
key, |
|
|
const char * |
p |
|
) |
| |
|
inline |
◆ write_kv() [2/6]
void gx_system::JsonWriter::write_kv |
( |
const char * |
key, |
|
|
const std::string & |
s |
|
) |
| |
|
inline |
◆ write_kv() [3/6]
void gx_system::JsonWriter::write_kv |
( |
const char * |
key, |
|
|
double |
v |
|
) |
| |
|
inline |
◆ write_kv() [4/6]
void gx_system::JsonWriter::write_kv |
( |
const char * |
key, |
|
|
float |
v |
|
) |
| |
|
inline |
◆ write_kv() [5/6]
void gx_system::JsonWriter::write_kv |
( |
const char * |
key, |
|
|
int |
i |
|
) |
| |
|
inline |
◆ write_kv() [6/6]
void gx_system::JsonWriter::write_kv |
( |
const char * |
key, |
|
|
unsigned int |
i |
|
) |
| |
|
inline |
◆ write_lit()
void gx_system::JsonWriter::write_lit |
( |
const string & |
s, |
|
|
bool |
nl = false |
|
) |
| |
◆ write_null()
void gx_system::JsonWriter::write_null |
( |
bool |
nl = false | ) |
|
|
inline |
◆ deferred_nl
int gx_system::JsonWriter::deferred_nl |
|
private |
◆ first
bool gx_system::JsonWriter::first |
|
private |
◆ indent
string gx_system::JsonWriter::indent |
|
private |
◆ os
ostream* gx_system::JsonWriter::os |
|
private |
The documentation for this class was generated from the following file: