#include <yocto_api.h>
Public Member Functions | |
string | FormatError (const string &errmsg, int cur_pos) |
YJSONType | getJSONType () |
virtual int | parse ()=0 |
virtual string | toJSON ()=0 |
virtual string | toString ()=0 |
YJSONContent (const string &data, int start, int stop, YJSONType type) | |
YJSONContent (YJSONContent *ref) | |
YJSONContent (YJSONType type) | |
virtual | ~YJSONContent () |
Static Public Member Functions | |
static YJSONContent * | ParseJson (const string &data, int start, int stop) |
static int | SkipGarbage (const string &data, int start, int stop) |
Public Attributes | |
string | _data |
int | _data_boundary |
int | _data_len |
int | _data_start |
YJSONType | _type |
Definition at line 322 of file yocto_api.h.
YJSONContent::YJSONContent | ( | const string & | data, |
int | start, | ||
int | stop, | ||
YJSONType | type | ||
) |
Definition at line 121 of file yocto_api.cpp.
YJSONContent::YJSONContent | ( | YJSONContent * | ref | ) |
Definition at line 134 of file yocto_api.cpp.
YJSONContent::YJSONContent | ( | YJSONType | type | ) |
Definition at line 129 of file yocto_api.cpp.
|
virtual |
Definition at line 144 of file yocto_api.cpp.
string YJSONContent::FormatError | ( | const string & | errmsg, |
int | cur_pos | ||
) |
Definition at line 166 of file yocto_api.cpp.
YJSONType YJSONContent::getJSONType | ( | ) |
Definition at line 149 of file yocto_api.cpp.
|
pure virtual |
Implemented in YJSONObject, YJSONNumber, YJSONString, and YJSONArray.
|
static |
Definition at line 104 of file yocto_api.cpp.
|
static |
Definition at line 154 of file yocto_api.cpp.
|
pure virtual |
Implemented in YJSONObject, YJSONNumber, YJSONString, and YJSONArray.
|
pure virtual |
Implemented in YJSONObject, YJSONNumber, YJSONString, and YJSONArray.
string YJSONContent::_data |
Definition at line 325 of file yocto_api.h.
int YJSONContent::_data_boundary |
Definition at line 328 of file yocto_api.h.
int YJSONContent::_data_len |
Definition at line 327 of file yocto_api.h.
int YJSONContent::_data_start |
Definition at line 326 of file yocto_api.h.
YJSONType YJSONContent::_type |
Definition at line 329 of file yocto_api.h.