|
Guitarix
|
#include <gx_json.h>

Public Member Functions | |
| 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 () |
| gx_system::JsonWriter::JsonWriter | ( | ostream * | o = 0, |
| bool | enable_newlines = true |
||
| ) |
Definition at line 48 of file gx_json.cpp.
|
virtual |
Definition at line 54 of file gx_json.cpp.
| void gx_system::JsonWriter::begin_array | ( | bool | nl = false | ) |
Definition at line 183 of file gx_json.cpp.
Referenced by ladspa::PortDesc::output(), ladspa::PluginDesc::output(), ladspa::PluginDesc::output_entry(), gx_engine::ParamMap::readJSON_one(), gx_system::JsonStringWriter::send_notify_begin(), gx_engine::MidiController::writeJSON(), gx_engine::paradesc::writeJSON(), and gx_engine::plugdesc::writeJSON().
| void gx_system::JsonWriter::begin_object | ( | bool | nl = false | ) |
Definition at line 167 of file gx_json.cpp.
Referenced by gx_engine::FileParameter::FileParameter(), gx_engine::ParameterV< bool >::ParameterV(), gx_engine::ParameterV< Glib::ustring >::ParameterV(), gx_system::JsonStringWriter::send_notify_begin(), ladspa::ChangeableValues::serializeJSON(), ladspa::PortDesc::serializeJSON(), gx_engine::paradesc::writeJSON(), and gx_engine::plugdesc::writeJSON().
|
virtual |
Reimplemented in gx_system::ModifyPreset, gx_system::ModifyState, and gx_system::PresetTransformer.
Definition at line 67 of file gx_json.cpp.
Referenced by ~JsonWriter().
| void gx_system::JsonWriter::end_array | ( | bool | nl = false | ) |
Definition at line 191 of file gx_json.cpp.
Referenced by ladspa::PortDesc::output(), ladspa::PluginDesc::output(), ladspa::PluginDesc::output_entry(), gx_engine::ParamMap::readJSON_one(), gx_engine::paradesc::writeJSON(), and gx_engine::plugdesc::writeJSON().
| void gx_system::JsonWriter::end_object | ( | bool | nl = false | ) |
Definition at line 175 of file gx_json.cpp.
Referenced by gx_engine::FileParameter::FileParameter(), gx_engine::ParameterV< bool >::ParameterV(), gx_engine::ParameterV< Glib::ustring >::ParameterV(), ladspa::ChangeableValues::serializeJSON(), ladspa::PortDesc::serializeJSON(), gx_engine::paradesc::writeJSON(), and gx_engine::plugdesc::writeJSON().
| void gx_system::JsonWriter::flush | ( | ) |
Definition at line 212 of file gx_json.cpp.
Referenced by end_array(), and end_object().
|
inline |
| void gx_system::JsonWriter::reset | ( | void | ) |
Definition at line 58 of file gx_json.cpp.
|
inline |
Definition at line 69 of file gx_json.h.
Referenced by gx_system::JsonStringWriter::JsonStringWriter().
| void gx_system::JsonWriter::write | ( | const char * | p, |
| bool | nl = false |
||
| ) |
Definition at line 145 of file gx_json.cpp.
|
inline |
| void gx_system::JsonWriter::write | ( | double | v, |
| bool | nl = false |
||
| ) |
Definition at line 121 of file gx_json.cpp.
| void gx_system::JsonWriter::write | ( | float | v, |
| bool | nl = false |
||
| ) |
Definition at line 115 of file gx_json.cpp.
Referenced by gx_engine::GxMachineRemote::GxMachineRemote(), gx_engine::GxMachineRemote::insert_param(), ladspa::PortDesc::output(), ladspa::PluginDesc::output(), ladspa::PluginDesc::output_entry(), gx_engine::GxMachineRemote::reload_impresp_list(), gx_system::JsonStringWriter::send_notify_begin(), gx_engine::GxMachineRemote::set_oscilloscope_mul_buffer(), write_key(), write_kv(), gx_engine::MidiController::writeJSON(), and gx_engine::paradesc::writeJSON().
| void gx_system::JsonWriter::write | ( | int | i, |
| bool | nl = false |
||
| ) |
Definition at line 127 of file gx_json.cpp.
| void gx_system::JsonWriter::write | ( | unsigned int | i, |
| bool | nl = false |
||
| ) |
Definition at line 133 of file gx_json.cpp.
| void gx_system::JsonWriter::write_key | ( | const char * | p, |
| bool | nl = false |
||
| ) |
Definition at line 199 of file gx_json.cpp.
Referenced by gx_engine::FileParameter::FileParameter(), gx_engine::ParameterV< bool >::ParameterV(), gx_engine::ParameterV< Glib::ustring >::ParameterV(), gx_engine::ParameterV< GxJConvSettings >::readJSON_value(), gx_system::JsonStringWriter::send_notify_begin(), ladspa::ChangeableValues::serializeJSON(), ladspa::PortDesc::serializeJSON(), write_kv(), gx_engine::paradesc::writeJSON(), and gx_engine::plugdesc::writeJSON().
| void gx_system::JsonWriter::write_key | ( | const string & | p, |
| bool | nl = false |
||
| ) |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 80 of file gx_json.h.
Referenced by gx_engine::FileParameter::FileParameter(), gx_engine::ParameterV< bool >::ParameterV(), gx_engine::ParameterV< Glib::ustring >::ParameterV(), ladspa::ChangeableValues::serializeJSON(), ladspa::PortDesc::serializeJSON(), gx_engine::paradesc::writeJSON(), and gx_engine::plugdesc::writeJSON().
|
inline |
|
inline |
| void gx_system::JsonWriter::write_lit | ( | const string & | s, |
| bool | nl = false |
||
| ) |
Definition at line 139 of file gx_json.cpp.
Referenced by newline().
|
inline |