#include <uaclientsdk.h>
List of all members.
Public Member Functions |
virtual void | connectionStatusChanged (OpcUa_UInt32 clientConnectionId, UaClient::ServerStatus serverStatus)=0 |
virtual void | readComplete (OpcUa_UInt32 transactionId, const UaStatus &result, const UaDataValues &values, const UaDiagnosticInfos &diagnosticInfos) |
virtual void | writeComplete (OpcUa_UInt32 transactionId, const UaStatus &result, const UaStatusCodeArray &results, const UaDiagnosticInfos &diagnosticInfos) |
virtual void | callComplete (OpcUa_UInt32 transactionId, const UaStatus &result, const CallOut &callResponse) |
virtual void | addNodesComplete (OpcUa_UInt32 transactionId, const UaStatus &result, const UaAddNodesResults &results, const UaDiagnosticInfos &diagnosticInfos) |
virtual void | addReferencesComplete (OpcUa_UInt32 transactionId, const UaStatus &result, const UaStatusCodeArray &results, const UaDiagnosticInfos &diagnosticInfos) |
virtual void | deleteNodesComplete (OpcUa_UInt32 transactionId, const UaStatus &result, const UaStatusCodeArray &results, const UaDiagnosticInfos &diagnosticInfos) |
virtual void | deleteReferencesComplete (OpcUa_UInt32 transactionId, const UaStatus &result, const UaStatusCodeArray &results, const UaDiagnosticInfos &diagnosticInfos) |
Detailed Description
UaSessionCallback defines the callback interface for the UaSession class. This callback interface needs to be implemented by the user of the UaSession class to receive connection status change callbacks from the Client SDK. The interface provides also the callback functions for the asynchronous service calls. Only the callbacks for used asynchronous calls need to be implemented by the user of the SDK.
Callbacks from the SDK APIs are coming from worker threads and not from the thread that was used to connect to the server. It is in the responsibility of the user of the client API to syncronize the data provided by the callbacks with a GUI main thread if this is necessary.
Member Function Documentation
void UaClientSdk::UaSessionCallback::addNodesComplete |
( |
OpcUa_UInt32 |
transactionId, |
|
|
const UaStatus & |
result, |
|
|
const UaAddNodesResults & |
results, |
|
|
const UaDiagnosticInfos & |
diagnosticInfos |
|
) |
| [virtual] |
Send addNodes result.
- Parameters:
-
[in] | transactionId | Client defined transction id for the addNodes |
[in] | result | Overall addNodes result |
[in] | results | List of add nodes results |
[in] | diagnosticInfos | List of diagnostic information |
void UaClientSdk::UaSessionCallback::addReferencesComplete |
( |
OpcUa_UInt32 |
transactionId, |
|
|
const UaStatus & |
result, |
|
|
const UaStatusCodeArray & |
results, |
|
|
const UaDiagnosticInfos & |
diagnosticInfos |
|
) |
| [virtual] |
Send addReferences result.
- Parameters:
-
[in] | transactionId | Client defined transction id for the addReferences |
[in] | result | Overall addReferences result |
[in] | results | List of add references results |
[in] | diagnosticInfos | List of diagnostic information |
void UaClientSdk::UaSessionCallback::callComplete |
( |
OpcUa_UInt32 |
transactionId, |
|
|
const UaStatus & |
result, |
|
|
const CallOut & |
callResponse |
|
) |
| [virtual] |
Send call result.
- Parameters:
-
[in] | transactionId | Client defined transction id for the call |
[in] | result | Overall call result |
[in] | callResponse | Output arguments and input argument results. See CallOut for more details |
virtual void UaClientSdk::UaSessionCallback::connectionStatusChanged |
( |
OpcUa_UInt32 |
clientConnectionId, |
|
|
UaClient::ServerStatus |
serverStatus |
|
) |
| [pure virtual] |
Send changed status.
- Parameters:
-
[in] | clientConnectionId | Client defined handle of the affected session |
[in] | serverStatus | New connection status. See UaClient::ServerStatus for more details |
void UaClientSdk::UaSessionCallback::deleteNodesComplete |
( |
OpcUa_UInt32 |
transactionId, |
|
|
const UaStatus & |
result, |
|
|
const UaStatusCodeArray & |
results, |
|
|
const UaDiagnosticInfos & |
diagnosticInfos |
|
) |
| [virtual] |
Send deleteNodes result.
- Parameters:
-
[in] | transactionId | Client defined transction id for the deleteNodes |
[in] | result | Overall deleteNodes result |
[in] | results | List of delete nodes results |
[in] | diagnosticInfos | List of diagnostic information |
void UaClientSdk::UaSessionCallback::deleteReferencesComplete |
( |
OpcUa_UInt32 |
transactionId, |
|
|
const UaStatus & |
result, |
|
|
const UaStatusCodeArray & |
results, |
|
|
const UaDiagnosticInfos & |
diagnosticInfos |
|
) |
| [virtual] |
Send deleteReferences result.
- Parameters:
-
[in] | transactionId | Client defined transction id for the deleteReferences |
[in] | result | Overall deleteReferences result |
[in] | results | List of delete references results |
[in] | diagnosticInfos | List of diagnostic information |
void UaClientSdk::UaSessionCallback::readComplete |
( |
OpcUa_UInt32 |
transactionId, |
|
|
const UaStatus & |
result, |
|
|
const UaDataValues & |
values, |
|
|
const UaDiagnosticInfos & |
diagnosticInfos |
|
) |
| [virtual] |
Send read results.
- Parameters:
-
[in] | transactionId | Client defined transction id for the read |
[in] | result | Overall read result |
[in] | values | List of read results contained in OpcUa_DataValue structures |
[in] | diagnosticInfos | List of diagnostic information |
void UaClientSdk::UaSessionCallback::writeComplete |
( |
OpcUa_UInt32 |
transactionId, |
|
|
const UaStatus & |
result, |
|
|
const UaStatusCodeArray & |
results, |
|
|
const UaDiagnosticInfos & |
diagnosticInfos |
|
) |
| [virtual] |
Send write results.
- Parameters:
-
[in] | transactionId | Client defined transction id for the write |
[in] | result | Overall write result |
[in] | results | List of write results |
[in] | diagnosticInfos | List of diagnostic information |
The documentation for this class was generated from the following files:
- /home/buildbot/work/uasdkcpp/src/uaclient/uaclientcpp/uaclientsdk.h
- /home/buildbot/work/uasdkcpp/src/uaclient/uaclientcpp/uaclientsdk.cpp