Zserio C++ runtime library  1.1.0
Built for Zserio 2.15.0
zserio::IBasicServiceClient< ALLOC > Class Template Referenceabstract

#include <IService.h>

Public Member Functions

virtual ~IBasicServiceClient ()=default
 
virtual vector< uint8_t, ALLOC > callMethod (StringView methodName, const IBasicServiceData< ALLOC > &requestData, void *context)=0
 

Detailed Description

template<typename ALLOC = std::allocator<uint8_t>>
class zserio::IBasicServiceClient< ALLOC >

Generic interface for all Zserio services to be used on the client side.

Definition at line 227 of file IService.h.

Constructor & Destructor Documentation

◆ ~IBasicServiceClient()

template<typename ALLOC = std::allocator<uint8_t>>
virtual zserio::IBasicServiceClient< ALLOC >::~IBasicServiceClient ( )
virtualdefault

Member Function Documentation

◆ callMethod()

template<typename ALLOC = std::allocator<uint8_t>>
virtual vector<uint8_t, ALLOC> zserio::IBasicServiceClient< ALLOC >::callMethod ( StringView  methodName,
const IBasicServiceData< ALLOC > &  requestData,
void *  context 
)
pure virtual

Calls method with the given name synchronously.

Parameters
methodNameName of the service method to call.
requestDataRequest data to be passed to the method.
contextContext specific for particular service or nullptr in case of no context.
Returns
Created response data as bytes.
Exceptions
ServiceExceptionif the call fails.

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