Zserio C++ runtime library  1.0.0
Built for Zserio 2.13.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< ALLOC >
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

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.

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

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< ALLOC >.

Definition at line 157 of file IService.h.

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< ALLOC >.

Definition at line 152 of file IService.h.


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