Skip to content

Requestor

class Requestor

Functions

Name Description
receiveResponseHashes @brief Receives the reply for the current request, returning shared pointers to the reply's header and body hashes.
registerErrorHandler Register handler for errors in async requests, e.g. timeout or remote exception
getSignalInstanceId @brief Extracts the value of the SignalInstanceId path in a response header hash.

Function Details

getSignalInstanceId

void getSignalInstanceId(const karabo::data::Hash::Pointer& header, std::string& result)

@brief Extracts the value of the SignalInstanceId path in a response header hash.

header : response header hash from where the value will be extracted

result : the string that will be assigned the value of the SignalInstanceId path

receiveResponseHashes

std::pair<karabo::data::Hash::Pointer, karabo::data::Hash::Pointer> receiveResponseHashes()

@brief Receives the reply for the current request, returning shared pointers to the reply's header and body hashes.

Return : A pair with a shared pointer to the header hash of the reply in the first position and a shared pointer to the body in the second.

registerErrorHandler

void registerErrorHandler(const AsyncErrorHandler& errorHandler)

Register handler for errors in async requests, e.g. timeout or remote exception