Internalization functionality. More...
#include <runtimedataserializer.hpp>
Public Member Functions | |
| bool | internalize (RuntimeExternalizerContextBase *context, const string &stream) |
| Main entry point. More... | |
| RuntimeDataInternalizer (RuntimeDataDispatcher &dispatcher) | |
| C++ constructor. More... | |
| void | visitList (RuntimeExternalizerContextBase *context, uint32_t hash, RuntimeStreamContentDataList list) |
| Dispatches the provided list content. More... | |
| void | visitObject (RuntimeExternalizerContextBase *context, uint32_t hash, RuntimeStreamContentDataList object) |
| Will dispatch the provided list content. More... | |
Static Public Member Functions | |
| static bool | internalize (const string &stream, RuntimeDataObjectSharedPtr base) |
| Internalizes the received datastream. More... | |
Protected Member Functions | |
| void | visit (RuntimeExternalizerContextBase *context, uint32_t hash, RuntimeStreamContentDataList list) |
| void | visitInternal (RuntimeExternalizerContextBase *context, uint32_t hash, RuntimeStreamContentDataObject object) |
Internalization functionality.
|
inline |
C++ constructor.
| dispatcher | dispatcher where to forward the visited items. |
|
static |
Internalizes the received datastream.
| stream | the received data stream |
| base | the base object that defines the local structure that is updated. |
| bool kanzi::connect::RuntimeDataInternalizer::internalize | ( | RuntimeExternalizerContextBase * | context, |
| const string & | stream | ||
| ) |
Main entry point.
Processes incoming stream and invokes dispatcher methods accordingly
| context | user defined context object passed to callbacks |
| stream | serialized runtimedata stream that contains the information |
|
protected |
|
protected |
| void kanzi::connect::RuntimeDataInternalizer::visitList | ( | RuntimeExternalizerContextBase * | context, |
| uint32_t | hash, | ||
| RuntimeStreamContentDataList | list | ||
| ) |
Dispatches the provided list content.
| context | Context as passed to the dispatch* callback invoking this. |
| hash | The hash of the object. |
| list | The list to be visited. |
| void kanzi::connect::RuntimeDataInternalizer::visitObject | ( | RuntimeExternalizerContextBase * | context, |
| uint32_t | hash, | ||
| RuntimeStreamContentDataList | object | ||
| ) |
Will dispatch the provided list content.
| context | Context as passed to the dispatch* callback invoking this. |
| hash | The hash of the object. |
| object | the object to be visited. |