Zserio C++17 runtime library  0.5.0
Built for Zserio 2.17.0
zserio::BasicIntrospectableServiceData< ZSERIO_OBJECT, ALLOC > Class Template Reference

#include <IService.h>

Inheritance diagram for zserio::BasicIntrospectableServiceData< ZSERIO_OBJECT, ALLOC >:
Collaboration diagram for zserio::BasicIntrospectableServiceData< ZSERIO_OBJECT, ALLOC >:

Public Member Functions

 BasicIntrospectableServiceData (ZSERIO_OBJECT &&response, const ALLOC &allocator=ALLOC())
 
IBasicIntrospectableViewConstPtr< ALLOC > getIntrospectable () const override
 
Span< const uint8_t > getData () const override
 
- Public Member Functions inherited from zserio::IBasicServiceData< std::allocator< uint8_t > >
virtual ~IBasicServiceData ()=default
 

Detailed Description

template<typename ZSERIO_OBJECT, typename ALLOC = std::allocator<uint8_t>>
class zserio::BasicIntrospectableServiceData< ZSERIO_OBJECT, ALLOC >

Service data implementation based on introspectable interface.

Holds reference to the introspectable object and lazy-initialized serialized data in case that getData() is used.

Definition at line 54 of file IService.h.

Constructor & Destructor Documentation

◆ BasicIntrospectableServiceData()

template<typename ZSERIO_OBJECT , typename ALLOC = std::allocator<uint8_t>>
zserio::BasicIntrospectableServiceData< ZSERIO_OBJECT, ALLOC >::BasicIntrospectableServiceData ( ZSERIO_OBJECT &&  response,
const ALLOC &  allocator = ALLOC() 
)
inlineexplicit

Constructor from introspectable.

Parameters
introspectableConstant introspectable created from zserio request object.
allocatorAllocator to use for data allocation.

Definition at line 63 of file IService.h.

Member Function Documentation

◆ getData()

template<typename ZSERIO_OBJECT , typename ALLOC = std::allocator<uint8_t>>
Span<const uint8_t> zserio::BasicIntrospectableServiceData< ZSERIO_OBJECT, ALLOC >::getData ( ) const
inlineoverridevirtual

Lazy initialized data serialized using the introspectable object.

Gets service data as bytes.

Returns
Service data.

Implements zserio::IBasicServiceData< std::allocator< uint8_t > >.

Definition at line 79 of file IService.h.

◆ getIntrospectable()

template<typename ZSERIO_OBJECT , typename ALLOC = std::allocator<uint8_t>>
IBasicIntrospectableViewConstPtr<ALLOC> zserio::BasicIntrospectableServiceData< ZSERIO_OBJECT, ALLOC >::getIntrospectable ( ) const
inlineoverridevirtual

Gets introspectable representing the service data (if available).

Returns
Introspectable or null when no introspectable is available.

Implements zserio::IBasicServiceData< std::allocator< uint8_t > >.

Definition at line 69 of file IService.h.


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