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

#include <yocto_api.h>

Inheritance diagram for YJSONNumber:
Inheritance graph
[legend]

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 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 383 of file yocto_api.h.

Constructor & Destructor Documentation

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.

virtual YJSONNumber::~YJSONNumber ( )
inlinevirtual

Definition at line 392 of file yocto_api.h.

Member Function Documentation

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.

int YJSONNumber::parse ( )
virtual

Implements YJSONContent.

Definition at line 503 of file yocto_api.cpp.

string YJSONNumber::toJSON ( )
virtual

Implements YJSONContent.

Definition at line 540 of file yocto_api.cpp.

string YJSONNumber::toString ( )
virtual

Implements YJSONContent.

Definition at line 572 of file yocto_api.cpp.

Member Data Documentation

double YJSONNumber::_doubleValue
private

Definition at line 386 of file yocto_api.h.

s64 YJSONNumber::_intValue
private

Definition at line 385 of file yocto_api.h.

bool YJSONNumber::_isFloat
private

Definition at line 387 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