Zserio C++ runtime library  1.0.2
Built for Zserio 2.14.1
zserio::IBasicService< ALLOC > Class Template Referenceabstract

#include <IService.h>

Public Member Functions

virtual ~IBasicService ()=default
 
virtual IBasicServiceDataPtr< ALLOC > callMethod (StringView methodName, Span< const uint8_t > requestData, void *context)=0
 

Detailed Description

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

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

Definition at line 203 of file IService.h.

Constructor & Destructor Documentation

◆ ~IBasicService()

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

Member Function Documentation

◆ callMethod()

template<typename ALLOC = std::allocator<uint8_t>>
virtual IBasicServiceDataPtr<ALLOC> zserio::IBasicService< ALLOC >::callMethod ( StringView  methodName,
Span< const uint8_t >  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.
Exceptions
ServiceExceptionif the call fails.

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