Zserio C++ runtime library  1.2.0
Built for Zserio 2.16.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)
 
IBasicReflectableConstPtr< ALLOC > getReflectable () 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 132 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 140 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 149 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 158 of file IService.h.

◆ getReflectable()

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

Gets reflectable representing the service data (if available).

Returns
Reflectable or null when no reflectable is available.

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

Definition at line 153 of file IService.h.


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