#include <yocto_api.h>
Public Member Functions | |
double | getDouble () |
int | getInt () |
s64 | getLong () |
virtual int | parse () |
virtual string | toJSON () |
virtual string | toString () |
YJSONNumber (const string &data, int start, int stop) | |
YJSONNumber (YJSONNumber *ref) | |
virtual | ~YJSONNumber () |
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 Attributes | |
double | _doubleValue |
s64 | _intValue |
bool | _isFloat |
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 383 of file yocto_api.h.
YJSONNumber::YJSONNumber | ( | const string & | data, |
int | start, | ||
int | stop | ||
) |
Definition at line 492 of file yocto_api.cpp.
YJSONNumber::YJSONNumber | ( | YJSONNumber * | ref | ) |
Definition at line 495 of file yocto_api.cpp.
|
inlinevirtual |
Definition at line 392 of file yocto_api.h.
double YJSONNumber::getDouble | ( | ) |
Definition at line 564 of file yocto_api.cpp.
int YJSONNumber::getInt | ( | ) |
Definition at line 556 of file yocto_api.cpp.
s64 YJSONNumber::getLong | ( | ) |
Definition at line 548 of file yocto_api.cpp.
|
virtual |
Implements YJSONContent.
Definition at line 503 of file yocto_api.cpp.
|
virtual |
Implements YJSONContent.
Definition at line 540 of file yocto_api.cpp.
|
virtual |
Implements YJSONContent.
Definition at line 572 of file yocto_api.cpp.
|
private |
Definition at line 386 of file yocto_api.h.
|
private |
Definition at line 385 of file yocto_api.h.
|
private |
Definition at line 387 of file yocto_api.h.