1 #ifndef ZSERIO_I_INTROSPECTABLE_DATA_INC
2 #define ZSERIO_I_INTROSPECTABLE_DATA_INC
17 template <
typename ALLOC>
26 template <
typename I,
typename ALLOC = std::allocator<u
int8_t>>
86 virtual size_t size()
const = 0;
virtual std::string_view getStringView() const =0
virtual int32_t getInt32() const =0
virtual uint8_t getUInt8() const =0
std::shared_ptr< const I > ConstPtr
virtual float getFloat() const =0
virtual int8_t getInt8() const =0
virtual bool isArray() const =0
virtual double getDouble() const =0
virtual size_t size() const =0
virtual const IBasicTypeInfo< ALLOC > & getTypeInfo() const =0
virtual BytesView getBytes() const =0
virtual int64_t toInt() const =0
virtual BasicString< RebindAlloc< ALLOC, char > > toString(const ALLOC &allocator) const =0
virtual uint64_t toUInt() const =0
virtual BasicString< RebindAlloc< ALLOC, char > > toString() const =0
virtual uint32_t getUInt32() const =0
virtual ConstPtr find(std::string_view path) const =0
virtual int64_t getInt64() const =0
virtual ConstPtr operator[](size_t index) const =0
virtual BasicAny< ALLOC > getAnyValue() const =0
virtual uint64_t getUInt64() const =0
virtual int16_t getInt16() const =0
virtual ConstPtr at(size_t index) const =0
virtual uint16_t getUInt16() const =0
virtual ~IIntrospectableData()=default
virtual bool getBool() const =0
virtual ConstPtr operator[](std::string_view path) const =0
virtual BasicAny< ALLOC > getAnyValue(const ALLOC &allocator) const =0
virtual const BasicBitBuffer< ALLOC > & getBitBuffer() const =0
virtual std::string_view getChoice() const =0
virtual ConstPtr getField(std::string_view name) const =0
virtual double toDouble() const =0
std::basic_string< char, std::char_traits< char >, ALLOC > BasicString