C++ Based OPC UA Client/Server SDK
1.6.1.391
|
Interface definition of the MethodManager used for calling methods in the server. More...
#include <methodmanager.h>
Inherited by OpcUa::BaseObjectType.
Public Member Functions | |
MethodManager () | |
construction | |
virtual | ~MethodManager () |
destruction | |
virtual UaStatus | beginCall (MethodManagerCallback *pCallback, const ServiceContext &serviceContext, OpcUa_UInt32 callbackHandle, MethodHandle *pMethodHandle, const UaVariantArray &inputArguments)=0 |
Call method of an UA object. More... | |
Interface definition of the MethodManager used for calling methods in the server.
The MethodManager interface provides the method call capability for objects. The MethodManager interface is asynchronous. For the MethodManager callback the MethodManagerCallback interface is implemented by the consumer of the call results. One of the consumers is the UA Module. This interface is used by the SDK to multiplex the list of calls in the UA service to different MethodManagers.
|
pure virtual |
Call method of an UA object.
pCallback | Callback interface used for the transaction. The MethodManager must use this interface to finish the action for each passed node in the transaction. The callback interface pointer is valid until the transaction is completely finished. |
serviceContext | General context for the service calls containing information like the session object, return diagnostic mask and timeout hint. |
callbackHandle | Handle for the method call in the callback. |
pMethodHandle | MethodHandle provided by the NodeManager::getMethodHandle. This object contains the information needed by the MethodManager to identify the object and the method to call. The object is reference counted. The reference used by the SDK is released after beginCall is returned. If the MethodManager needs the MethodHandle of asynchronous handling, the MethodManager must add its own reference as long as the MethodHandle is used. |
inputArguments | The list of input arguments for the method call. |
Implemented in OpcUa::ConditionTypeBase, OpcUa::AlarmConditionTypeBase, OpcUa::AcknowledgeableConditionTypeBase, OpcUa::DialogConditionTypeBase, OpcUa::ShelvedStateMachineTypeBase, OpcUa::ProgramStateMachineTypeBase, OpcUa::BaseObjectType, OpcUa::TrustListTypeBase, OpcUa::NamespaceMetadataType, OpcUa::AddressSpaceFileType, OpcUa::FileTransferStateMachineTypeBase, OpcUa::FileDirectoryTypeBase, OpcUa::CertificateGroupType, OpcUa::ServerConfigurationTypeBase, OpcUa::FileTypeBase, OpcUaDi::TopologyElementTypeBase, OpcUaPlc::CtrlConfigurationTypeBase, OpcUa::TemporaryFileTransferTypeBase, OpcUaPlc::CtrlResourceTypeBase, OpcUa::AlarmMetricsTypeBase, OpcUaDi::NetworkTypeBase, OpcUa::RoleTypeBase, OpcUaDi::LockingServicesTypeBase, OpcUa::RoleSetTypeBase, and OpcUaDi::TransferServicesTypeBase.