Zserio C++17 runtime library
0.5.0
Built for Zserio 2.17.0
|
#include <IIntrospectableView.h>
Public Types | |
using | ConstPtr = typename IIntrospectableData< IBasicIntrospectableView< ALLOC >, ALLOC >::ConstPtr |
![]() | |
using | ConstPtr = std::shared_ptr< const IBasicIntrospectableView< std::allocator< uint8_t > > > |
Public Member Functions | |
~IBasicIntrospectableView () override=default | |
virtual ConstPtr | getParameter (std::string_view name) const =0 |
virtual ConstPtr | callFunction (std::string_view name) const =0 |
virtual BasicBitBuffer< ALLOC > | serialize (const ALLOC &allocator) const =0 |
virtual BasicBitBuffer< ALLOC > | serialize () const =0 |
![]() | |
virtual | ~IIntrospectableData ()=default |
virtual const IBasicTypeInfo< std::allocator< uint8_t > > & | getTypeInfo () const=0 |
virtual bool | isArray () const=0 |
virtual ConstPtr | getField (std::string_view name) const=0 |
virtual std::string_view | getChoice () const=0 |
virtual size_t | size () const=0 |
virtual ConstPtr | at (size_t index) const=0 |
virtual ConstPtr | operator[] (size_t index) const=0 |
virtual ConstPtr | operator[] (std::string_view path) const=0 |
virtual bool | getBool () const=0 |
virtual int8_t | getInt8 () const=0 |
virtual int16_t | getInt16 () const=0 |
virtual int32_t | getInt32 () const=0 |
virtual int64_t | getInt64 () const=0 |
virtual uint8_t | getUInt8 () const=0 |
virtual uint16_t | getUInt16 () const=0 |
virtual uint32_t | getUInt32 () const=0 |
virtual uint64_t | getUInt64 () const=0 |
virtual float | getFloat () const=0 |
virtual double | getDouble () const=0 |
virtual BytesView | getBytes () const=0 |
virtual std::string_view | getStringView () const=0 |
virtual const BasicBitBuffer< std::allocator< uint8_t > > & | getBitBuffer () const=0 |
virtual int64_t | toInt () const=0 |
virtual uint64_t | toUInt () const=0 |
virtual double | toDouble () const=0 |
virtual ConstPtr | find (std::string_view path) const=0 |
virtual BasicAny< std::allocator< uint8_t > > | getAnyValue (const std::allocator< uint8_t > &allocator) const=0 |
virtual BasicAny< std::allocator< uint8_t > > | getAnyValue () const=0 |
virtual BasicString< RebindAlloc< std::allocator< uint8_t >, char > > | toString (const std::allocator< uint8_t > &allocator) const=0 |
virtual BasicString< RebindAlloc< std::allocator< uint8_t >, char > > | toString () const=0 |
Interface to introspect View abstraction of the Zserio objects.
This is read-only interface which offers all information available from the View abstraction of the Zserio objects including parameters, functions and serialization feature.
Definition at line 21 of file IIntrospectableView.h.
using zserio::IBasicIntrospectableView< ALLOC >::ConstPtr = typename IIntrospectableData<IBasicIntrospectableView<ALLOC>, ALLOC>::ConstPtr |
Shared pointer to the constant introspectable interface.
Definition at line 25 of file IIntrospectableView.h.
|
overridedefault |
Destructor.
|
pure virtual |
Calls function on the introspectable zserio object and gets introspectable view to its result.
name | Function schema name. |
CppRuntimeException | When the introspectable object is not a compound type or when the function with the given name doesn't exist or the the function call itself throws. |
|
pure virtual |
Gets introspectable to the parameter (i.e. member) with the given schema name.
name | Parameter schema name. |
CppRuntimeException | When the introspectable object is not a compound type or when the parameter with the given name doesn't exist or when the parameter getter itself throws. |
|
pure virtual |
Serializes the introspectable compound object.
allocator | Allocator to use for the value allocation. |
CppRuntimeException | When the introspectable object is not a compound. |
|
pure virtual |
Serializes the introspectable compound object.
allocator | Allocator to use for the value allocation. |
CppRuntimeException | When the introspectable object is not a compound. |