1 #ifndef ZSERIO_ISERVICE_H_INC 2 #define ZSERIO_ISERVICE_H_INC 18 template <
typename ALLOC = std::allocator<u
int8_t>>
41 template <
typename ALLOC = std::allocator<u
int8_t>>
50 template <
typename ALLOC = std::allocator<u
int8_t>>
61 const ALLOC& allocator = ALLOC()) :
62 m_reflectable(reflectable), m_data(allocator)
77 if (m_reflectable && m_data.getBitSize() == 0)
82 m_reflectable->write(writer);
84 return m_data.getData();
95 template <
typename ALLOC = std::allocator<u
int8_t>>
105 template <
typename ZSERIO_OBJECT>
110 object.write(writer);
120 return m_data.getData();
130 template <
typename ALLOC = std::allocator<u
int8_t>>
149 : m_data(std::move(rawData))
171 template <
typename ALLOC = std::allocator<u
int8_t>>
201 template <
typename ALLOC = std::allocator<u
int8_t>>
227 template <
typename ALLOC = std::allocator<u
int8_t>>
268 #endif // ifndef ZSERIO_ISERVICE_H_INC typename IBasicReflectable< ALLOC >::ConstPtr IBasicReflectableConstPtr
IBasicReflectableConstPtr< ALLOC > getReflectable() const override
BasicRawServiceDataView(zserio::Span< const uint8_t > rawData)
IBasicServiceDataPtr<> IServiceDataPtr
BasicReflectableServiceData(const IBasicReflectableConstPtr< ALLOC > &reflectable, const ALLOC &allocator=ALLOC())
virtual Span< const uint8_t > getData() const =0
Span< const uint8_t > getData() const override
Span< const uint8_t > getData() const override
BasicObjectServiceData(ZSERIO_OBJECT &object, const ALLOC &allocator=ALLOC())
Span< const uint8_t > getData() const override
IBasicReflectableConstPtr< ALLOC > getReflectable() const override
BasicRawServiceDataHolder(vector< uint8_t, ALLOC > &&rawData)
virtual ~IBasicServiceData()=default
Span< const uint8_t > getData() const override
std::vector< T, RebindAlloc< ALLOC, T >> vector
BasicRawServiceDataHolder(const vector< uint8_t, ALLOC > &rawData)
IBasicReflectableConstPtr< ALLOC > getReflectable() const override
IBasicReflectableConstPtr< ALLOC > getReflectable() const override
size_t bitSizeOf(T value)
virtual IBasicReflectableConstPtr< ALLOC > getReflectable() const =0
std::shared_ptr< IBasicServiceData< ALLOC >> IBasicServiceDataPtr