Zserio C++ runtime library
1.1.0
Built for Zserio 2.15.0
|
#include <IWalkObserver.h>
Public Member Functions | |
virtual | ~IBasicWalkObserver ()=default |
virtual void | beginRoot (const IBasicReflectableConstPtr< ALLOC > &compound)=0 |
virtual void | endRoot (const IBasicReflectableConstPtr< ALLOC > &compound)=0 |
virtual void | beginArray (const IBasicReflectableConstPtr< ALLOC > &array, const BasicFieldInfo< ALLOC > &fieldInfo)=0 |
virtual void | endArray (const IBasicReflectableConstPtr< ALLOC > &array, const BasicFieldInfo< ALLOC > &fieldInfo)=0 |
virtual void | beginCompound (const IBasicReflectableConstPtr< ALLOC > &compound, const BasicFieldInfo< ALLOC > &fieldInfo, size_t elementIndex)=0 |
virtual void | endCompound (const IBasicReflectableConstPtr< ALLOC > &compound, const BasicFieldInfo< ALLOC > &fieldInfo, size_t elementIndex)=0 |
virtual void | visitValue (const IBasicReflectableConstPtr< ALLOC > &value, const BasicFieldInfo< ALLOC > &fieldInfo, size_t elementIndex)=0 |
Interface for observers which are called by the walker.
Definition at line 15 of file IWalkObserver.h.
|
virtualdefault |
Destructor.
|
pure virtual |
Called at the beginning of an array.
Note that for unset arrays (i.e. non-present optionals) the visitValue method with nullptr is called instead!
array | Reflectable zserio array. |
fieldInfo | Array field info. |
|
pure virtual |
Called at the beginning of an compound field object.
Note that for unset compounds (i.e. non-present optionals) the visitValue method with nullptr is called instead!
compound | Reflectable compound zserio object. |
fieldInfo | Compound field info. |
elementIndex | Element index in array or WALKER_NOT_ELEMENT if the compound is not in array. |
|
pure virtual |
Called for the root compound zserio object which is to be walked-through.
compound | Reflectable root compound zserio object. |
|
pure virtual |
Called at the end of an array.
array | Reflectable zserio array. |
fieldInfo | Array field info. |
|
pure virtual |
Called at the end of just walked compound object.
compound | Reflectable compound zserio object. |
fieldInfo | Compound field info. |
elementIndex | Element index in array or WALKER_NOT_ELEMENT if the compound is not in array. |
|
pure virtual |
Called at the end of just walked root compound zserio object.
compound | Reflectable root compound zserio object. |
|
pure virtual |
Called when a simple (or an unset compound or array - i.e. nullptr) value is reached.
value | Reflectable simple value. |
fieldInfo | Field info. |
elementIndex | Element index in array or WALKER_NOT_ELEMENT if the value is not in array. |