OpenDOF Project
void(* DOFObjectProvider::Invoke)(DOFObjectProvider self, DOFOperation operation, DOFRequest request, DOFInterfaceMethod method, uint16 parameterCount, const DOFValue parameters[])

Callback for a Provider when a DOFInterfaceMethod is to be invoked.

This callback may be NULL if the application does not implement the capability to invoke a Method (if the interface supports methods, any attempt to invoke will cause a generic exception response).

Parameters
selfThe callback object. This will never be NULL.
operationThe Provide Operation. This will never be NULL.
methodThe Method being Invoked. This will never be NULL.
parameterCountThe number of parameters in the value array.
parametersAn array of DOFValue elements, representing the input parameters to the Method. This will never be NULL if parameterCount is not 0.
requestA representation of the requestor. This will never be NULL.
Note
The request must be completed by either returning the output parameters of the Method via DOFRequestInvoke_Return, or returning an exception via DOFRequest_Throw. All parameters to this callback remain valid and may be referenced by the application until either the end of the callback or the request is completed as described, whichever is LATER. It is the responsibility of the application to ensure the request is eventually completed.
core-c-dof-oal Version 8.0.1 Build 0
2018-01-22