Kanzi Connect 3.9.10
kanzi::connect::RuntimeDataSubscriber Class Reference

Utility class for receiving runtimedata along the existing connection to a server. More...

#include <stream_util_connect.hpp>

Inheritance diagram for kanzi::connect::RuntimeDataSubscriber:
kanzi::connect::ContentLoader::Observer

Public Member Functions

 RuntimeDataSubscriber (ContentClient::RuntimeDataResultCallbackFunction callback)
 Constructor.
 
void onContentLoaded (ContentLoader *loader, ContentResult *result) override
 
void onContentInvalidated (ContentLoader *loader) override
 Callback to notify that previously loaded content is no longer valid.
 
void onRuntimeDataUpdateReceived (ContentLoader *loader, const string &uri, const string &stream) override
 Callback to notify when runtime data update is received.
 

Detailed Description

Utility class for receiving runtimedata along the existing connection to a server.

Constructor & Destructor Documentation

◆ RuntimeDataSubscriber()

kanzi::connect::RuntimeDataSubscriber::RuntimeDataSubscriber ( ContentClient::RuntimeDataResultCallbackFunction callback)

Constructor.

Parameters
callbackCallback function to be notified when data changes.

Member Function Documentation

◆ onContentInvalidated()

void kanzi::connect::RuntimeDataSubscriber::onContentInvalidated ( ContentLoader * loader)
overridevirtual

Callback to notify that previously loaded content is no longer valid.

Parameters
loaderContent loader that invalidated the content.

Implements kanzi::connect::ContentLoader::Observer.

◆ onContentLoaded()

void kanzi::connect::RuntimeDataSubscriber::onContentLoaded ( ContentLoader * loader,
ContentResult * result )
overridevirtual

◆ onRuntimeDataUpdateReceived()

void kanzi::connect::RuntimeDataSubscriber::onRuntimeDataUpdateReceived ( ContentLoader * loader,
const string & uri,
const string & stream )
overridevirtual

Callback to notify when runtime data update is received.

Implements kanzi::connect::ContentLoader::Observer.


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