Zserio C++17 runtime library  0.5.0
Built for Zserio 2.17.0
zserio::IBasicServiceClient< ALLOC > Class Template Referenceabstract

#include <IService.h>

Public Member Functions

virtual ~IBasicServiceClient ()=default
 
virtual Vector< uint8_t, ALLOC > callMethod (std::string_view 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 226 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 ( std::string_view  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: