Zserio C++ runtime library
1.1.0
Built for Zserio 2.15.0
|
#include <IService.h>
Public Member Functions | |
BasicReflectableServiceData (const IBasicReflectableConstPtr< ALLOC > &reflectable, 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 |
Service data implementation based on reflectable interface.
Holds reference to the reflectable object and lazy-initialized serialized data in case that getData() is used.
Definition at line 51 of file IService.h.
|
inlineexplicit |
Constructor from reflectable.
reflectable | Constant reflectable created from zserio request object. |
allocator | Allocator to use for data allocation. |
Definition at line 60 of file IService.h.
|
inlineoverridevirtual |
Lazy initialized data serialized using the reflectable object.
Gets service data as bytes.
Implements zserio::IBasicServiceData< std::allocator< uint8_t > >.
Definition at line 76 of file IService.h.
|
inlineoverridevirtual |
Gets reflectable representing the service data (if available).
Implements zserio::IBasicServiceData< std::allocator< uint8_t > >.
Definition at line 66 of file IService.h.