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

#include <yocto_api.h>

Public Member Functions

void clearCache (bool clearSubpath)
 
YRETCODE getFunctions (vector< YFUN_DESCR > **functions, string &errmsg)
 
string getHubSerial (void)
 
YRETCODE HTTPRequest (int channel, const string &request, string &buffer, yapiRequestProgressCallback progress_cb, void *progress_ctx, string &errmsg)
 
YRETCODE HTTPRequestAsync (int channel, const string &request, HTTPRequestCallback callback, void *context, string &errmsg)
 
YRETCODE requestAPI (YJSONObject *&apires, string &errmsg)
 

Static Public Member Functions

static void ClearCache ()
 
static YDevicegetDevice (YDEV_DESCR devdescr)
 

Private Member Functions

YRETCODE HTTPRequest_unsafe (int channel, const string &request, string &buffer, yapiRequestProgressCallback progress_cb, void *progress_ctx, string &errmsg)
 
YRETCODE HTTPRequestPrepare (const string &request, string &fullrequest, char *errbuff)
 
 YDevice (YDEV_DESCR devdesc)
 
 ~YDevice ()
 

Private Attributes

YJSONObject_cacheJson
 
u64 _cacheStamp
 
YDEV_DESCR _devdescr
 
vector< YFUN_DESCR_functions
 
yCRITICAL_SECTION _lock
 
char _rootdevice [YOCTO_SERIAL_LEN]
 
char * _subpath
 

Static Private Attributes

static vector< YDevice * > _devCache
 

Detailed Description

Definition at line 1502 of file yocto_api.h.

Constructor & Destructor Documentation

YDevice::YDevice ( YDEV_DESCR  devdesc)
private

Definition at line 3556 of file yocto_api.cpp.

YDevice::~YDevice ( )
private

Definition at line 3561 of file yocto_api.cpp.

Member Function Documentation

void YDevice::ClearCache ( )
static

Definition at line 3567 of file yocto_api.cpp.

void YDevice::clearCache ( bool  clearSubpath)

Definition at line 3779 of file yocto_api.cpp.

YDevice * YDevice::getDevice ( YDEV_DESCR  devdescr)
static

Definition at line 3577 of file yocto_api.cpp.

YRETCODE YDevice::getFunctions ( vector< YFUN_DESCR > **  functions,
string &  errmsg 
)

Definition at line 3796 of file yocto_api.cpp.

string YDevice::getHubSerial ( void  )
YRETCODE YDevice::HTTPRequest ( int  channel,
const string &  request,
string &  buffer,
yapiRequestProgressCallback  progress_cb,
void *  progress_ctx,
string &  errmsg 
)

Definition at line 3665 of file yocto_api.cpp.

YRETCODE YDevice::HTTPRequest_unsafe ( int  channel,
const string &  request,
string &  buffer,
yapiRequestProgressCallback  progress_cb,
void *  progress_ctx,
string &  errmsg 
)
private

Definition at line 3618 of file yocto_api.cpp.

YRETCODE YDevice::HTTPRequestAsync ( int  channel,
const string &  request,
HTTPRequestCallback  callback,
void *  context,
string &  errmsg 
)

Definition at line 3649 of file yocto_api.cpp.

YRETCODE YDevice::HTTPRequestPrepare ( const string &  request,
string &  fullrequest,
char *  errbuff 
)
private

Definition at line 3597 of file yocto_api.cpp.

YRETCODE YDevice::requestAPI ( YJSONObject *&  apires,
string &  errmsg 
)

Definition at line 3686 of file yocto_api.cpp.

Member Data Documentation

YJSONObject* YDevice::_cacheJson
private

Definition at line 1511 of file yocto_api.h.

u64 YDevice::_cacheStamp
private

Definition at line 1510 of file yocto_api.h.

vector< YDevice * > YDevice::_devCache
staticprivate

Definition at line 1506 of file yocto_api.h.

YDEV_DESCR YDevice::_devdescr
private

Definition at line 1509 of file yocto_api.h.

vector<YFUN_DESCR> YDevice::_functions
private

Definition at line 1512 of file yocto_api.h.

yCRITICAL_SECTION YDevice::_lock
private

Definition at line 1515 of file yocto_api.h.

char YDevice::_rootdevice[YOCTO_SERIAL_LEN]
private

Definition at line 1513 of file yocto_api.h.

char* YDevice::_subpath
private

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