Zserio C++ runtime library  1.1.0
Built for Zserio 2.15.0
zserio::BasicObjectServiceData< ALLOC > Class Template Reference

#include <IService.h>

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

Public Member Functions

template<typename ZSERIO_OBJECT >
 BasicObjectServiceData (ZSERIO_OBJECT &object, const ALLOC &allocator=ALLOC())
 
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::BasicObjectServiceData< ALLOC >

Service data implementation based on objects generated by Zserio.

Definition at line 97 of file IService.h.

Constructor & Destructor Documentation

◆ BasicObjectServiceData()

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

Constructor from zserio-generated object.

Parameters
objectReference to zserio object.
allocatorAllocator to use for data allocation

Definition at line 107 of file IService.h.

Member Function Documentation

◆ getData()

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

Gets service data as bytes.

Returns
Service data.

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

Definition at line 119 of file IService.h.

◆ getReflectable()

template<typename ALLOC = std::allocator<uint8_t>>
IBasicReflectableConstPtr<ALLOC> zserio::BasicObjectServiceData< 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 114 of file IService.h.


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