#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. | |
kanzi::connect::RPCCallStore::RPCCallStore | ( | ) |
Constructor.
RPCTypes::CommHandle kanzi::connect::RPCCallStore::allocateHandle | ( | ) |
Allocates a unique handle to be used in communication.
bool kanzi::connect::RPCCallStore::completeBool | ( | RPCTypes::CommHandle | handle, |
int32_t | rpcstatus, | ||
bool | value ) |
Complete bool type of item.
handle | identifies the item to complete |
rpcstatus | low layer status for completion |
value | value to set. |
bool kanzi::connect::RPCCallStore::completeFloat | ( | RPCTypes::CommHandle | handle, |
int32_t | rpcstatus, | ||
float | value ) |
Complete float type of item.
handle | identifies the item to complete |
rpcstatus | low layer status for completion |
value | value to set. |
bool kanzi::connect::RPCCallStore::completeInt | ( | RPCTypes::CommHandle | handle, |
int32_t | rpcstatus, | ||
int32_t | value ) |
Complete int type of item.
handle | identifies the item to complete |
rpcstatus | low layer status for completion |
value | value to set. |
bool kanzi::connect::RPCCallStore::completeString | ( | RPCTypes::CommHandle | handle, |
int32_t | rpcstatus, | ||
string | value ) |
Complete string type of item.
handle | identifies the item to complete |
rpcstatus | low layer status for completion |
value | value to set. |
void kanzi::connect::RPCCallStore::completeTimedOut | ( | ) |
Completes all timed out RPC calls.
bool kanzi::connect::RPCCallStore::completeVoid | ( | RPCTypes::CommHandle | handle, |
int32_t | rpcstatus ) |
Complete void type of item.
handle | identifies the item to complete |
rpcstatus | low layer status for completion |
bool kanzi::connect::RPCCallStore::contains | ( | RPCTypes::CommHandle | handle | ) |
Checks whether response with provided handle is known.
handle | the identifier of the operation |
void kanzi::connect::RPCCallStore::handleLinkBroken | ( | ) |
Called when underlying link that carries RPC methods.
void kanzi::connect::RPCCallStore::put | ( | RPCResult< bool > | item | ) |
Insert item to store.
item | to insert |
void kanzi::connect::RPCCallStore::put | ( | RPCResult< float > | item | ) |
Insert item to store.
item | to insert |
void kanzi::connect::RPCCallStore::put | ( | RPCResult< int32_t > | item | ) |
Insert item to store.
item | to insert |
void kanzi::connect::RPCCallStore::put | ( | RPCResult< string > | item | ) |
Insert item to store.
item | to insert |
void kanzi::connect::RPCCallStore::put | ( | RPCResult< void > | item | ) |
Insert item to store.
item | to insert |