Teonet library  0.4.7
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
teo::Teonet::TeoDB Class Reference

#include <teonet.hpp>

Data Structures

struct  teoDbCQueData
 

Public Types

typedef teo_db_data teoDbData
 
typedef teo_db_data_range teoDbDataRange
 
typedef struct
teo::Teonet::TeoDB::teoDbCQueData 
teoDbCQueData
 

Public Member Functions

 TeoDB (Teonet *t, const std::string &peer, teoDbData **tdd)
 
 TeoDB (const TeoDB &obj)
 
virtual ~TeoDB ()
 
TeonetgetTeonet () const
 Get pointer to teonet class object. More...
 
ksnetEvMgrClassgetKe () const
 
CQuegetCQue ()
 
const char * getPeer () const
 
bool checkPeer (const char *peer_name)
 
std::unique_ptr< teoDbDataprepareRequest (const void *key, size_t key_len, const void *data, size_t data_len, uint32_t id, size_t *tdd_len)
 
ksnet_arp_data * send (uint8_t cmd, const void *key, size_t key_len, const void *data=NULL, size_t data_len=0)
 
template<typename Callback >
ksnet_arp_data * send (uint8_t cmd, const void *key, size_t key_len, Callback cb, double timeout, uint8_t cb_type, teo::teoPacket *rd=NULL, teoDbData **tdd=NULL, void *user_data=NULL)
 
ksnet_arp_data * send (uint8_t cmd, const void *key, size_t key_len, cqueCallback cb, double timeout, uint8_t cb_type, teo::teoPacket *rd=NULL, teoDbData **tdd=NULL, void *user_data=NULL)
 
int exec (uint32_t id)
 
bool process (teoEvents event, void *data)
 

Static Public Member Functions

static teoDbDatagetData (teo::teoPacket *rd)
 

Member Typedef Documentation

Constructor & Destructor Documentation

teo::Teonet::TeoDB::TeoDB ( Teonet t,
const std::string &  peer,
teoDbData **  tdd 
)
inline
teo::Teonet::TeoDB::TeoDB ( const TeoDB obj)
inline
virtual teo::Teonet::TeoDB::~TeoDB ( )
inlinevirtual

Member Function Documentation

bool teo::Teonet::TeoDB::checkPeer ( const char *  peer_name)
inline

Referenced by process().

int teo::Teonet::TeoDB::exec ( uint32_t  id)
inline

References teo::Teonet::CQue::exec().

Referenced by process().

CQue* teo::Teonet::TeoDB::getCQue ( )
inline
static teoDbData* teo::Teonet::TeoDB::getData ( teo::teoPacket rd)
inlinestatic

References ksnCorePacketData::data.

Referenced by process().

ksnetEvMgrClass* teo::Teonet::TeoDB::getKe ( ) const
inline
const char* teo::Teonet::TeoDB::getPeer ( ) const
inline
Teonet* teo::Teonet::TeoDB::getTeonet ( ) const
inline

Get pointer to teonet class object.

Returns
Pointer to teonet class object

Referenced by getKe().

std::unique_ptr<teoDbData> teo::Teonet::TeoDB::prepareRequest ( const void *  key,
size_t  key_len,
const void *  data,
size_t  data_len,
uint32_t  id,
size_t *  tdd_len 
)
inline
ksnet_arp_data* teo::Teonet::TeoDB::send ( uint8_t  cmd,
const void *  key,
size_t  key_len,
const void *  data = NULL,
size_t  data_len = 0 
)
inline

References data.

template<typename Callback >
ksnet_arp_data* teo::Teonet::TeoDB::send ( uint8_t  cmd,
const void *  key,
size_t  key_len,
Callback  cb,
double  timeout,
uint8_t  cb_type,
teo::teoPacket rd = NULL,
teoDbData **  tdd = NULL,
void *  user_data = NULL 
)
inline
ksnet_arp_data* teo::Teonet::TeoDB::send ( uint8_t  cmd,
const void *  key,
size_t  key_len,
cqueCallback  cb,
double  timeout,
uint8_t  cb_type,
teo::teoPacket rd = NULL,
teoDbData **  tdd = NULL,
void *  user_data = NULL 
)
inline

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