Go to the documentation of this file. 1 #ifndef DESERIALIZER_HPP
2 #define DESERIALIZER_HPP
29 virtual bool isROS2()
const = 0;
46 [[nodiscard]]
virtual const uint8_t*
getCurrentPtr()
const = 0;
54 virtual void reset() = 0;
83 void reset()
override;
95 throw std::runtime_error(
"Buffer overrun in Deserializer");
97 out = (*(
reinterpret_cast<const T*
>(
_ptr)));
123 virtual void reset()
override;
132 std::shared_ptr<eprosima::fastcdr::Cdr>
_cdr;
139 #endif // DESERIALIZER_HPP
virtual Variant deserialize(BuiltinType type)=0
bool isROS2() const override
bool isROS2() const override
std::shared_ptr< eprosima::fastcdr::FastBuffer > _cdr_buffer
virtual ~Deserializer()=default
virtual void init(Span< const uint8_t > buffer)
virtual void jump(size_t bytes)=0
virtual Span< const uint8_t > deserializeByteSequence()=0
virtual void deserializeString(std::string &out)=0
void jump(size_t bytes) override
virtual void reset() override
uint32_t deserializeUInt32() override
const uint8_t * getCurrentPtr() const override
void deserializeString(std::string &dst) override
Span< const uint8_t > deserializeByteSequence() override
const uint8_t * getCurrentPtr() const override
void jump(size_t bytes) override
Span< const uint8_t > _buffer
virtual uint32_t deserializeUInt32()=0
virtual const uint8_t * getCurrentPtr() const =0
std::shared_ptr< eprosima::fastcdr::Cdr > _cdr
virtual size_t bytesLeft() const
uint32_t deserializeUInt32() override
Variant deserialize(BuiltinType type) override
Span< const uint8_t > deserializeByteSequence() override
void deserializeString(std::string &dst) override
virtual bool isROS2() const =0
plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:44