Zserio C++ runtime library  1.2.0
Built for Zserio 2.16.0
zserio::BasicJsonParser< ALLOC >::IObserver Class Referenceabstract

#include <JsonParser.h>

Inheritance diagram for zserio::BasicJsonParser< ALLOC >::IObserver:

Public Member Functions

virtual ~IObserver ()=default
 
virtual void beginObject ()=0
 
virtual void endObject ()=0
 
virtual void beginArray ()=0
 
virtual void endArray ()=0
 
virtual void visitKey (StringView key)=0
 
virtual void visitValue (std::nullptr_t nullValue)=0
 
virtual void visitValue (bool boolValue)=0
 
virtual void visitValue (int64_t intValue)=0
 
virtual void visitValue (uint64_t uintValue)=0
 
virtual void visitValue (double doubleValue)=0
 
virtual void visitValue (StringView stringValue)=0
 

Detailed Description

template<typename ALLOC = std::allocator<uint8_t>>
class zserio::BasicJsonParser< ALLOC >::IObserver

Json Parser Observer.

Definition at line 24 of file JsonParser.h.

Constructor & Destructor Documentation

◆ ~IObserver()

template<typename ALLOC = std::allocator<uint8_t>>
virtual zserio::BasicJsonParser< ALLOC >::IObserver::~IObserver ( )
virtualdefault

Destructor.

Member Function Documentation

◆ beginArray()

template<typename ALLOC = std::allocator<uint8_t>>
virtual void zserio::BasicJsonParser< ALLOC >::IObserver::beginArray ( )
pure virtual

Called when a JSON array begins - i.e. on '['.

◆ beginObject()

template<typename ALLOC = std::allocator<uint8_t>>
virtual void zserio::BasicJsonParser< ALLOC >::IObserver::beginObject ( )
pure virtual

Called when a JSON object begins - i.e. on '{'.

◆ endArray()

template<typename ALLOC = std::allocator<uint8_t>>
virtual void zserio::BasicJsonParser< ALLOC >::IObserver::endArray ( )
pure virtual

Called when a JSON array ends - i.e. on ']'.

◆ endObject()

template<typename ALLOC = std::allocator<uint8_t>>
virtual void zserio::BasicJsonParser< ALLOC >::IObserver::endObject ( )
pure virtual

Called when a JSON objects ends - i.e. on '}'.

◆ visitKey()

template<typename ALLOC = std::allocator<uint8_t>>
virtual void zserio::BasicJsonParser< ALLOC >::IObserver::visitKey ( StringView  key)
pure virtual

Called on a JSON key.

Parameters
keyString view to the key name.

◆ visitValue() [1/6]

template<typename ALLOC = std::allocator<uint8_t>>
virtual void zserio::BasicJsonParser< ALLOC >::IObserver::visitValue ( bool  boolValue)
pure virtual

Call on a JSON bool value.

Parameters
boolValueBool value.

◆ visitValue() [2/6]

template<typename ALLOC = std::allocator<uint8_t>>
virtual void zserio::BasicJsonParser< ALLOC >::IObserver::visitValue ( double  doubleValue)
pure virtual

Call on a JSON floating point value.

Parameters
doubleValueFloating point value.

◆ visitValue() [3/6]

template<typename ALLOC = std::allocator<uint8_t>>
virtual void zserio::BasicJsonParser< ALLOC >::IObserver::visitValue ( int64_t  intValue)
pure virtual

Call on a JSON signed integer value.

Parameters
intValueSigned integer value.

◆ visitValue() [4/6]

template<typename ALLOC = std::allocator<uint8_t>>
virtual void zserio::BasicJsonParser< ALLOC >::IObserver::visitValue ( std::nullptr_t  nullValue)
pure virtual

Call on a JSON null value.

Parameters
nullValueNull value.

◆ visitValue() [5/6]

template<typename ALLOC = std::allocator<uint8_t>>
virtual void zserio::BasicJsonParser< ALLOC >::IObserver::visitValue ( StringView  stringValue)
pure virtual

Call on a JSON string value.

Parameters
stringValueString view to the string value.

◆ visitValue() [6/6]

template<typename ALLOC = std::allocator<uint8_t>>
virtual void zserio::BasicJsonParser< ALLOC >::IObserver::visitValue ( uint64_t  uintValue)
pure virtual

Call on a JSON unsigned integer value.

Parameters
uintValueUnsigned integer value.

The documentation for this class was generated from the following file: