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>>
62 m_reflectable(reflectable),
78 if (m_reflectable && m_data.getBitSize() == 0)
83 m_reflectable->write(writer);
85 return m_data.getData();
96 template <
typename ALLOC = std::allocator<u
int8_t>>
106 template <
typename ZSERIO_OBJECT>
111 object.write(writer);
121 return m_data.getData();
131 template <
typename ALLOC = std::allocator<u
int8_t>>
150 m_data(std::move(rawData))
172 template <
typename ALLOC = std::allocator<u
int8_t>>
202 template <
typename ALLOC = std::allocator<u
int8_t>>
226 template <
typename ALLOC = std::allocator<u
int8_t>>
Span< const uint8_t > getData() const override
IBasicReflectableConstPtr< ALLOC > getReflectable() 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)
BasicRawServiceDataHolder(const vector< uint8_t, ALLOC > &rawData)
Span< const uint8_t > getData() const override
IBasicReflectableConstPtr< ALLOC > getReflectable() const override
BasicRawServiceDataView(zserio::Span< const uint8_t > rawData)
IBasicReflectableConstPtr< ALLOC > getReflectable() const override
BasicReflectableServiceData(const IBasicReflectableConstPtr< ALLOC > &reflectable, const ALLOC &allocator=ALLOC())
Span< const uint8_t > getData() const override
virtual vector< uint8_t, ALLOC > callMethod(StringView methodName, const IBasicServiceData< ALLOC > &requestData, void *context)=0
virtual ~IBasicServiceClient()=default
virtual IBasicReflectableConstPtr< ALLOC > getReflectable() const =0
virtual Span< const uint8_t > getData() const =0
virtual ~IBasicServiceData()=default
virtual IBasicServiceDataPtr< ALLOC > callMethod(StringView methodName, Span< const uint8_t > requestData, void *context)=0
virtual ~IBasicService()=default
IBasicServiceDataPtr<> IServiceDataPtr
std::vector< T, RebindAlloc< ALLOC, T > > vector
std::shared_ptr< IBasicServiceData< ALLOC > > IBasicServiceDataPtr
size_t bitSizeOf(T value)
typename IBasicReflectable< ALLOC >::ConstPtr IBasicReflectableConstPtr