Kanzi Connect 3.9.12
Kanzi docs feedback
kanzi::connect::RuntimeDataInternalizer Class Reference

Internalization functionality. More...

#include <runtimedataserializer.hpp>

Public Member Functions

bool internalize (RuntimeExternalizerContextBase *context, const string &stream)
 Main entry point.
 
 RuntimeDataInternalizer (RuntimeDataDispatcher &dispatcher)
 C++ constructor.
 
void visitList (RuntimeExternalizerContextBase *context, uint32_t hash, RuntimeStreamContentDataList list)
 Dispatches the provided list content.
 
void visitObject (RuntimeExternalizerContextBase *context, uint32_t hash, RuntimeStreamContentDataList object)
 Will dispatch the provided list content.
 

Static Public Member Functions

static bool internalize (const string &stream, RuntimeDataObjectSharedPtr base)
 Internalizes the received datastream.
 

Protected Member Functions

void visit (RuntimeExternalizerContextBase *context, uint32_t hash, RuntimeStreamContentDataList list)
 
void visitInternal (RuntimeExternalizerContextBase *context, uint32_t hash, RuntimeStreamContentDataObject object)
 

Detailed Description

Internalization functionality.

Constructor & Destructor Documentation

◆ RuntimeDataInternalizer()

kanzi::connect::RuntimeDataInternalizer::RuntimeDataInternalizer ( RuntimeDataDispatcher & dispatcher)
inline

C++ constructor.

Parameters
dispatcherdispatcher where to forward the visited items.

Member Function Documentation

◆ internalize() [1/2]

static bool kanzi::connect::RuntimeDataInternalizer::internalize ( const string & stream,
RuntimeDataObjectSharedPtr base )
static

Internalizes the received datastream.

Parameters
streamthe received data stream
basethe base object that defines the local structure that is updated.
Returns
true if no errors met.

◆ internalize() [2/2]

bool kanzi::connect::RuntimeDataInternalizer::internalize ( RuntimeExternalizerContextBase * context,
const string & stream )

Main entry point.

Processes incoming stream and invokes dispatcher methods accordingly

Parameters
contextuser defined context object passed to callbacks
streamserialized runtimedata stream that contains the information
Returns
true if success, false on error.

◆ visit()

void kanzi::connect::RuntimeDataInternalizer::visit ( RuntimeExternalizerContextBase * context,
uint32_t hash,
RuntimeStreamContentDataList list )
protected

◆ visitInternal()

void kanzi::connect::RuntimeDataInternalizer::visitInternal ( RuntimeExternalizerContextBase * context,
uint32_t hash,
RuntimeStreamContentDataObject object )
protected

◆ visitList()

void kanzi::connect::RuntimeDataInternalizer::visitList ( RuntimeExternalizerContextBase * context,
uint32_t hash,
RuntimeStreamContentDataList list )

Dispatches the provided list content.

Parameters
contextContext as passed to the dispatch* callback invoking this.
hashThe hash of the object.
listThe list to be visited.

◆ visitObject()

void kanzi::connect::RuntimeDataInternalizer::visitObject ( RuntimeExternalizerContextBase * context,
uint32_t hash,
RuntimeStreamContentDataList object )

Will dispatch the provided list content.

Parameters
contextContext as passed to the dispatch* callback invoking this.
hashThe hash of the object.
objectthe object to be visited.

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