Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
YJSONContent Class Referenceabstract

#include <yocto_api.h>

Inheritance diagram for YJSONContent:
Inheritance graph
[legend]

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 YJSONContentParseJson (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
 

Detailed Description

Definition at line 322 of file yocto_api.h.

Constructor & Destructor Documentation

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.

YJSONContent::~YJSONContent ( )
virtual

Definition at line 144 of file yocto_api.cpp.

Member Function Documentation

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.

virtual int YJSONContent::parse ( )
pure virtual
YJSONContent * YJSONContent::ParseJson ( const string &  data,
int  start,
int  stop 
)
static

Definition at line 104 of file yocto_api.cpp.

int YJSONContent::SkipGarbage ( const string &  data,
int  start,
int  stop 
)
static

Definition at line 154 of file yocto_api.cpp.

virtual string YJSONContent::toJSON ( )
pure virtual
virtual string YJSONContent::toString ( )
pure virtual

Member Data Documentation

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.


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