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

#include <IService.h>

Public Member Functions

virtual ~IBasicServiceData ()=default
 
virtual IBasicReflectableConstPtr< ALLOC > getReflectable () const =0
 
virtual Span< const uint8_t > getData () const =0
 

Detailed Description

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

Service data interface.

When reflectable interface is available, holds the reflectable object, otherwise holds the serialized data.

Definition at line 19 of file IService.h.

Constructor & Destructor Documentation

◆ ~IBasicServiceData()

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

Destructor.

Member Function Documentation

◆ getData()

template<typename ALLOC = std::allocator<uint8_t>>
virtual Span<const uint8_t> zserio::IBasicServiceData< ALLOC >::getData ( ) const
pure virtual

◆ getReflectable()

template<typename ALLOC = std::allocator<uint8_t>>
virtual IBasicReflectableConstPtr<ALLOC> zserio::IBasicServiceData< ALLOC >::getReflectable ( ) const
pure virtual

Gets reflectable representing the service data (if available).

Returns
Reflectable or null when no reflectable is available.

Implemented in zserio::BasicRawServiceDataView< ALLOC >, zserio::BasicRawServiceDataHolder< ALLOC >, zserio::BasicObjectServiceData< ALLOC >, and zserio::BasicReflectableServiceData< ALLOC >.


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