Public Member Functions | Private Member Functions | Private Attributes | List of all members
YJSONObject Class Reference

#include <yocto_api.h>

Inheritance diagram for YJSONObject:
Inheritance graph
[legend]

Public Member Functions

YJSONContentget (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)
 
YJSONArraygetYJSONArray (const string &key)
 
YJSONNumbergetYJSONNumber (const string &key)
 
YJSONObjectgetYJSONObject (const string &key)
 
YJSONStringgetYJSONString (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 YJSONContentParseJson (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
 

Detailed Description

Definition at line 403 of file yocto_api.h.

Constructor & Destructor Documentation

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.

YJSONObject::~YJSONObject ( )
virtual

Definition at line 615 of file yocto_api.cpp.

Member Function Documentation

void YJSONObject::convert ( YJSONObject reference,
YJSONArray newArray 
)
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.

int YJSONObject::parse ( )
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.

string YJSONObject::toJSON ( )
virtual

Implements YJSONContent.

Definition at line 802 of file yocto_api.cpp.

string YJSONObject::toString ( )
virtual

Implements YJSONContent.

Definition at line 822 of file yocto_api.cpp.

Member Data Documentation

vector<string> YJSONObject::_keys
private

Definition at line 406 of file yocto_api.h.

map<string, YJSONContent*> YJSONObject::_parsed
private

Definition at line 405 of file yocto_api.h.


The documentation for this class was generated from the following files:


yoctopuce_altimeter
Author(s): Anja Sheppard
autogenerated on Mon Jun 10 2019 15:49:13