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

#include <IService.h>

Inheritance diagram for zserio::BasicRawServiceDataHolder< ALLOC >:
Collaboration diagram for zserio::BasicRawServiceDataHolder< ALLOC >:

Public Member Functions

 BasicRawServiceDataHolder (const Vector< uint8_t, ALLOC > &rawData)
 
 BasicRawServiceDataHolder (Vector< uint8_t, ALLOC > &&rawData)
 
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 ALLOC = std::allocator<uint8_t>>
class zserio::BasicRawServiceDataHolder< ALLOC >

Service data implementation which owns the data.

Definition at line 131 of file IService.h.

Constructor & Destructor Documentation

◆ BasicRawServiceDataHolder() [1/2]

template<typename ALLOC = std::allocator<uint8_t>>
zserio::BasicRawServiceDataHolder< ALLOC >::BasicRawServiceDataHolder ( const Vector< uint8_t, ALLOC > &  rawData)
inlineexplicit

Constructor from vector const l-value reference.

Parameters
rawDataRaw data to be copied inside the service data.

Definition at line 139 of file IService.h.

◆ BasicRawServiceDataHolder() [2/2]

template<typename ALLOC = std::allocator<uint8_t>>
zserio::BasicRawServiceDataHolder< ALLOC >::BasicRawServiceDataHolder ( Vector< uint8_t, ALLOC > &&  rawData)
inlineexplicit

Constructor from vector r-value reference.

Parameters
rawDataRaw data to be moved inside the service data.

Definition at line 148 of file IService.h.

Member Function Documentation

◆ getData()

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

Gets service data as bytes.

Returns
Service data.

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

Definition at line 157 of file IService.h.

◆ getIntrospectable()

template<typename ALLOC = std::allocator<uint8_t>>
IBasicIntrospectableViewConstPtr<ALLOC> zserio::BasicRawServiceDataHolder< 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 152 of file IService.h.


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