11#if !defined(_WX_JSONWRITER_H) 
   12#define _WX_JSONWRITER_H 
   15#pragma interface "jsonwriter.h" 
   36  wxJSONWRITER_NONE = 0,
 
   37  wxJSONWRITER_STYLED = 1,
 
   38  wxJSONWRITER_WRITE_COMMENTS = 2,
 
   39  wxJSONWRITER_COMMENTS_BEFORE = 4,
 
   40  wxJSONWRITER_COMMENTS_AFTER = 8,
 
   41  wxJSONWRITER_SPLIT_STRING = 16,
 
   42  wxJSONWRITER_NO_LINEFEEDS = 32,
 
   43  wxJSONWRITER_ESCAPE_SOLIDUS = 64,
 
   44  wxJSONWRITER_MULTILINE_STRING = 128,
 
   45  wxJSONWRITER_RECOGNIZE_UNSIGNED = 256,
 
   46  wxJSONWRITER_TAB_INDENT = 512,
 
   47  wxJSONWRITER_NO_INDENTATION = 1024,
 
   48  wxJSONWRITER_NOUTF8_STREAM = 2048,
 
   49  wxJSONWRITER_MEMORYBUFF = 4096
 
   56  wxJSONWriter(
int style = wxJSONWRITER_STYLED, 
int indent = 0, 
int step = 3);
 
   61  void SetDoubleFmtString(
const char* fmt);
 
   64  int DoWrite(wxOutputStream& os, 
const wxJSONValue& value, 
const wxString* key,
 
   66  int WriteIndent(wxOutputStream& os);
 
   67  int WriteIndent(wxOutputStream& os, 
int num);
 
   68  bool IsSpace(wxChar ch);
 
   69  bool IsPunctuation(wxChar ch);
 
   71  int WriteString(wxOutputStream& os, 
const wxString& str);
 
   72  int WriteStringValue(wxOutputStream& os, 
const wxString& str);
 
   73  int WriteNullValue(wxOutputStream& os);
 
   74  int WriteIntValue(wxOutputStream& os, 
const wxJSONValue& v);
 
   75  int WriteUIntValue(wxOutputStream& os, 
const wxJSONValue& v);
 
   76  int WriteBoolValue(wxOutputStream& os, 
const wxJSONValue& v);
 
   77  int WriteDoubleValue(wxOutputStream& os, 
const wxJSONValue& v);
 
   78  int WriteMemoryBuff(wxOutputStream& os, 
const wxMemoryBuffer& buff);
 
   80  int WriteInvalid(wxOutputStream& os);
 
   81  int WriteSeparator(wxOutputStream& os);
 
   83  int WriteKey(wxOutputStream& os, 
const wxString& key);
 
   84  int WriteComment(wxOutputStream& os, 
const wxJSONValue& value, 
bool indent);
 
   86  int WriteError(
const wxString& err);
 
The JSON value class implementation.
The JSON document writer.
bool Write(const NavmsgFilter &filter, const std::string &name)
Write contents for given filter to disk.