C++ Based OPC UA Client/Server/PubSub SDK  1.7.6.537
PubSubDataSetDispatcherCallback Class Referenceabstract

Callback class for the PubSub data collector. More...

#include <pubsubserverapplicationcallback.h>

Public Member Functions

virtual bool handleDataSetDispatcher (PubSubBase::DataSetReader *pDataSetReader, PubSubReceiveQueueAccess *pReceiveQueueAccess, const UaWriteValues &nodesToWrite, OpcUa_Handle &dispatcherHandle)=0
 Callback informing the application about the start of the dispatcher. More...
 
virtual void newDataInQueue (PubSubBase::DataSetReader *pDataSetReader, OpcUa_Handle dispatcherHandle)=0
 Callback informing the application that a new DataSetMessage was received. More...
 
virtual void receiveTimeout (PubSubBase::DataSetReader *pDataSetReader, OpcUa_Handle dispatcherHandle)=0
 Callback informing the application that the receive timeout was reached. More...
 
virtual void stopDataSetDispatcher (PubSubBase::DataSetReader *pDataSetReader, OpcUa_Handle dispatcherHandle)=0
 Callback informing the application that the dispatcher is stopped. More...
 

Detailed Description

Callback class for the PubSub data collector.

Member Function Documentation

virtual bool PubSubDataSetDispatcherCallback::handleDataSetDispatcher ( PubSubBase::DataSetReader pDataSetReader,
PubSubReceiveQueueAccess pReceiveQueueAccess,
const UaWriteValues nodesToWrite,
OpcUa_Handle &  dispatcherHandle 
)
pure virtual

Callback informing the application about the start of the dispatcher.

Returns true if the received data for this dispatcher is processed by the application. In this case the newDataInQueue callback is called each time a DataSetMessage was received.

Returns false if the dispatcher is not handled by the application

Parameters
[in]pDataSetReaderThe affected DataSetReader
[in]pReceiveQueueAccessThe interface to access the dispatcher receive queue.
[in]nodesToWriteThe node settings for the nodes to write. The index is used in PubSubReceiveQueueAccess::getValueFromQueue
[out]dispatcherHandleHandle assigned by the dispatcher handler for the dispatcher / DataSetReader
virtual void PubSubDataSetDispatcherCallback::newDataInQueue ( PubSubBase::DataSetReader pDataSetReader,
OpcUa_Handle  dispatcherHandle 
)
pure virtual

Callback informing the application that a new DataSetMessage was received.

After this callback the new data can be accessed with PubSubReceiveQueueAccess::getValueFromQueue().

The callback should not block. Blocking this call blocks the network handler.

Parameters
[in]pDataSetReaderThe affected DataSetReader
[in]dispatcherHandleHandle assigned by the dispatcher handler for the dispatcher / DataSetReader
virtual void PubSubDataSetDispatcherCallback::receiveTimeout ( PubSubBase::DataSetReader pDataSetReader,
OpcUa_Handle  dispatcherHandle 
)
pure virtual

Callback informing the application that the receive timeout was reached.

Parameters
[in]pDataSetReaderThe affected DataSetReader
[in]dispatcherHandleHandle assigned by the dispatcher handler for the dispatcher / DataSetReader
virtual void PubSubDataSetDispatcherCallback::stopDataSetDispatcher ( PubSubBase::DataSetReader pDataSetReader,
OpcUa_Handle  dispatcherHandle 
)
pure virtual

Callback informing the application that the dispatcher is stopped.

Parameters
[in]pDataSetReaderThe affected DataSetReader
[in]dispatcherHandleHandle assigned by the dispatcher handler for the dispatcher / DataSetReader

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