Kanzi Connect 3.9.10
kanzi::connect::RPCCallStore Class Reference

#include <rpcresult.hpp>

Public Member Functions

RPCTypes::CommHandle allocateHandle ()
 Allocates a unique handle to be used in communication.
 
bool completeBool (RPCTypes::CommHandle handle, int32_t rpcstatus, bool value)
 Complete bool type of item.
 
bool completeFloat (RPCTypes::CommHandle handle, int32_t rpcstatus, float value)
 Complete float type of item.
 
bool completeInt (RPCTypes::CommHandle handle, int32_t rpcstatus, int32_t value)
 Complete int type of item.
 
bool completeString (RPCTypes::CommHandle handle, int32_t rpcstatus, string value)
 Complete string type of item.
 
void completeTimedOut ()
 Completes all timed out RPC calls.
 
bool completeVoid (RPCTypes::CommHandle handle, int32_t rpcstatus)
 Complete void type of item.
 
bool contains (RPCTypes::CommHandle handle)
 Checks whether response with provided handle is known.
 
void handleLinkBroken ()
 Called when underlying link that carries RPC methods.
 
void put (RPCResult< bool > item)
 Insert item to store.
 
void put (RPCResult< float > item)
 Insert item to store.
 
void put (RPCResult< int32_t > item)
 Insert item to store.
 
void put (RPCResult< string > item)
 Insert item to store.
 
void put (RPCResult< void > item)
 Insert item to store.
 
 RPCCallStore ()
 Constructor.
 

Constructor & Destructor Documentation

◆ RPCCallStore()

kanzi::connect::RPCCallStore::RPCCallStore ( )

Constructor.

Member Function Documentation

◆ allocateHandle()

RPCTypes::CommHandle kanzi::connect::RPCCallStore::allocateHandle ( )

Allocates a unique handle to be used in communication.

Returns
the unique handle. Quaranteed not to return 0 in any scenario.

◆ completeBool()

bool kanzi::connect::RPCCallStore::completeBool ( RPCTypes::CommHandle handle,
int32_t rpcstatus,
bool value )

Complete bool type of item.

Parameters
handleidentifies the item to complete
rpcstatuslow layer status for completion
valuevalue to set.
Returns
true if rpc operation was pending and got completed.

◆ completeFloat()

bool kanzi::connect::RPCCallStore::completeFloat ( RPCTypes::CommHandle handle,
int32_t rpcstatus,
float value )

Complete float type of item.

Parameters
handleidentifies the item to complete
rpcstatuslow layer status for completion
valuevalue to set.
Returns
true if rpc operation was pending and got completed.

◆ completeInt()

bool kanzi::connect::RPCCallStore::completeInt ( RPCTypes::CommHandle handle,
int32_t rpcstatus,
int32_t value )

Complete int type of item.

Parameters
handleidentifies the item to complete
rpcstatuslow layer status for completion
valuevalue to set.
Returns
true if rpc operation was pending and got completed.

◆ completeString()

bool kanzi::connect::RPCCallStore::completeString ( RPCTypes::CommHandle handle,
int32_t rpcstatus,
string value )

Complete string type of item.

Parameters
handleidentifies the item to complete
rpcstatuslow layer status for completion
valuevalue to set.
Returns
true if rpc operation was pending and got completed.

◆ completeTimedOut()

void kanzi::connect::RPCCallStore::completeTimedOut ( )

Completes all timed out RPC calls.

◆ completeVoid()

bool kanzi::connect::RPCCallStore::completeVoid ( RPCTypes::CommHandle handle,
int32_t rpcstatus )

Complete void type of item.

Parameters
handleidentifies the item to complete
rpcstatuslow layer status for completion
Returns
true if rpc operation was pending and got completed.

◆ contains()

bool kanzi::connect::RPCCallStore::contains ( RPCTypes::CommHandle handle)

Checks whether response with provided handle is known.

Parameters
handlethe identifier of the operation
Returns
true

◆ handleLinkBroken()

void kanzi::connect::RPCCallStore::handleLinkBroken ( )

Called when underlying link that carries RPC methods.

◆ put() [1/5]

void kanzi::connect::RPCCallStore::put ( RPCResult< bool > item)

Insert item to store.

Parameters
itemto insert

◆ put() [2/5]

void kanzi::connect::RPCCallStore::put ( RPCResult< float > item)

Insert item to store.

Parameters
itemto insert

◆ put() [3/5]

void kanzi::connect::RPCCallStore::put ( RPCResult< int32_t > item)

Insert item to store.

Parameters
itemto insert

◆ put() [4/5]

void kanzi::connect::RPCCallStore::put ( RPCResult< string > item)

Insert item to store.

Parameters
itemto insert

◆ put() [5/5]

void kanzi::connect::RPCCallStore::put ( RPCResult< void > item)

Insert item to store.

Parameters
itemto insert

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