RuntimeDataDispatcher

class kanzi::connect::RuntimeDataDispatcher

Interface used to dispatch contents of binary stream into individual variables.

Public Functions

virtual void dispatch(RuntimeExternalizerContextBase *context, uint32_t hash, bool value) = 0

Invoked to dispatch a boolean value.

Parameters
  • context – user provided context value.

  • hash – hash code of the name of the node.

  • value – The value to set.

virtual void dispatch(RuntimeExternalizerContextBase *context, uint32_t hash, const string &value) = 0

Invoked to dispatch a string value.

Parameters
  • context – user provided context value.

  • hash – hash code of the name of the node.

  • value – The value to set.

virtual void dispatch(RuntimeExternalizerContextBase *context, uint32_t hash, double value) = 0

Invoked to dispatch a float value.

Parameters
  • context – user provided context value.

  • hash – hash code of the name of the node.

  • value – The value to set.

virtual void dispatch(RuntimeExternalizerContextBase *context, uint32_t hash, int value) = 0

Invoked to dispatch an integer value.

Parameters
  • context – user provided context value.

  • hash – hash code of the name of the node.

  • value – The value to set.

virtual void dispatchList(RuntimeExternalizerContextBase *context, uint32_t hash, RuntimeStreamContentDataList list) = 0

Invoked to dispatch object content.

Parameters
  • hash – the hash code of the node.

  • list – the list

virtual void dispatchObject(RuntimeExternalizerContextBase *context, uint32_t hash, RuntimeStreamContentDataList object) = 0

Invoked to dispatch object content.

Parameters
  • hash – The hash code of the node.

  • object – The object.