Callback class for the DataSetWriter.
More...
#include <datasetwritercallback.h>
Callback class for the DataSetWriter.
Callback informing the application about the shut down of the DataSetWriter.
The application is not allowed to call any methods on the PubSubModule if this method call is returned.
- Parameters
-
Callback informing the application about the start up of the DataSetWriter.
- Parameters
-
void PubSubBase::DataSetWriterCallback::stateChange |
( |
DataSetWriter * |
pDataSetWriter, |
|
|
OpcUa_PubSubState |
newState |
|
) |
| |
|
virtual |
Callback informing the application about a state change of the DataSetWriter.
- Parameters
-
virtual OpcUa_StatusCode PubSubBase::DataSetWriterCallback::writeDataSetMessageFields |
( |
DataSetWriter * |
pDataSetWriter, |
|
|
struct ua_encoder_context * |
pEnc, |
|
|
bool & |
dataSetMessageValid, |
|
|
OpcUa_Byte & |
dataSetMessageType, |
|
|
OpcUa_UInt16 & |
status |
|
) |
| |
|
pure virtual |
Callback for encoding the fields of a new DataSetMessage before sending.
The application is responsible for writing the field count and the field data. The DataSetMessage header is already filled by the SDK.
The out parameters allow to influence the header in the case of an error or if the message type changes between messages.
- Parameters
-
[in] | pDataSetWriter | The affected DataSetWriter |
[in] | pEnc | The encoder object used to write the DataSetMessage fields. |
[out] | dataSetMessageValid | Flag indicating if the DataSetMessage is valid |
[out] | dataSetMessageType | Bit mask indicating the type of the written DataSetMessage.
The bit range 0-3 indicates the DataSetMessage type listed in the following table
Bit Values | Description |
0000 | Data Key Frame |
0001 | Data Delta Frame |
0010 | Event |
0011 | Keep Alive |
Bit 4 indicates if more events are available if the type is Event. |
[out] | status | The overall status of the DataSetMessage |
The documentation for this class was generated from the following files:
- D:/work/uasdkcpp/src/uabase/pubsubbasecpp/datasetwritercallback.h
- D:/work/uasdkcpp/src/uabase/pubsubbasecpp/datasetwriter.cpp