#include <yocto_api.h>
Public Member Functions | |
YJSONContent * | get (const string &key) |
double | getDouble (const string &key) |
int | getInt (const string &key) |
string | getKeyFromIdx (int i) |
s64 | getLong (const string &key) |
string | getString (const string &key) |
YJSONArray * | getYJSONArray (const string &key) |
YJSONNumber * | getYJSONNumber (const string &key) |
YJSONObject * | getYJSONObject (const string &key) |
YJSONString * | getYJSONString (const string &key) |
bool | has (const string &key) |
vector< string > | keys () |
virtual int | parse () |
void | parseWithRef (YJSONObject *reference) |
virtual string | toJSON () |
virtual string | toString () |
YJSONObject (const string &data) | |
YJSONObject (const string &data, int start, int len) | |
YJSONObject (YJSONObject *ref) | |
virtual | ~YJSONObject () |
Public Member Functions inherited from YJSONContent | |
string | FormatError (const string &errmsg, int cur_pos) |
YJSONType | getJSONType () |
YJSONContent (const string &data, int start, int stop, YJSONType type) | |
YJSONContent (YJSONContent *ref) | |
YJSONContent (YJSONType type) | |
virtual | ~YJSONContent () |
Private Member Functions | |
void | convert (YJSONObject *reference, YJSONArray *newArray) |
Private Attributes | |
vector< string > | _keys |
map< string, YJSONContent * > | _parsed |
Additional Inherited Members | |
Static Public Member Functions inherited from YJSONContent | |
static YJSONContent * | ParseJson (const string &data, int start, int stop) |
static int | SkipGarbage (const string &data, int start, int stop) |
Public Attributes inherited from YJSONContent | |
string | _data |
int | _data_boundary |
int | _data_len |
int | _data_start |
YJSONType | _type |
Definition at line 403 of file yocto_api.h.
YJSONObject::YJSONObject | ( | const string & | data | ) |
Definition at line 585 of file yocto_api.cpp.
YJSONObject::YJSONObject | ( | const string & | data, |
int | start, | ||
int | len | ||
) |
Definition at line 588 of file yocto_api.cpp.
YJSONObject::YJSONObject | ( | YJSONObject * | ref | ) |
Definition at line 591 of file yocto_api.cpp.
|
virtual |
Definition at line 615 of file yocto_api.cpp.
|
private |
Definition at line 860 of file yocto_api.cpp.
YJSONContent * YJSONObject::get | ( | const string & | key | ) |
Definition at line 785 of file yocto_api.cpp.
double YJSONObject::getDouble | ( | const string & | key | ) |
Definition at line 796 of file yocto_api.cpp.
int YJSONObject::getInt | ( | const string & | key | ) |
Definition at line 779 of file yocto_api.cpp.
string YJSONObject::getKeyFromIdx | ( | int | i | ) |
Definition at line 896 of file yocto_api.cpp.
s64 YJSONObject::getLong | ( | const string & | key | ) |
Definition at line 790 of file yocto_api.cpp.
string YJSONObject::getString | ( | const string & | key | ) |
Definition at line 773 of file yocto_api.cpp.
YJSONArray * YJSONObject::getYJSONArray | ( | const string & | key | ) |
Definition at line 754 of file yocto_api.cpp.
YJSONNumber * YJSONObject::getYJSONNumber | ( | const string & | key | ) |
Definition at line 768 of file yocto_api.cpp.
YJSONObject * YJSONObject::getYJSONObject | ( | const string & | key | ) |
Definition at line 744 of file yocto_api.cpp.
YJSONString * YJSONObject::getYJSONString | ( | const string & | key | ) |
Definition at line 749 of file yocto_api.cpp.
bool YJSONObject::has | ( | const string & | key | ) |
Definition at line 735 of file yocto_api.cpp.
vector< string > YJSONObject::keys | ( | ) |
Definition at line 759 of file yocto_api.cpp.
|
virtual |
Implements YJSONContent.
Definition at line 625 of file yocto_api.cpp.
void YJSONObject::parseWithRef | ( | YJSONObject * | reference | ) |
Definition at line 844 of file yocto_api.cpp.
|
virtual |
Implements YJSONContent.
Definition at line 802 of file yocto_api.cpp.
|
virtual |
Implements YJSONContent.
Definition at line 822 of file yocto_api.cpp.
|
private |
Definition at line 406 of file yocto_api.h.
|
private |
Definition at line 405 of file yocto_api.h.