Impact Acquire SDK .NET
|
A default request factory. More...
Public Member Functions | |
Request | createRequest (Device device, int requestNr) |
A default request factory.
Applications need to derive from this class and must re-implement the function mv.impact.acquire.IRequestFactory.createRequest to work with custom objects derived from mv.impact.acquire.Request.
Deriving from mv.impact.acquire.Request can be useful when a certain device driver or device offers a custom feature that is returned as part of the request object that can not be accessed using the mv.impact.acquire.Request class offered by this interface.
Example
This shows how a request factory could be used to create custom request objects from within a mv.impact.acquire.FunctionInterface instance.
Now the request factory must be passed to the constructor of the function interface
[in] | device | A pointer to a mv.impact.acquire.Device object obtained from a mv.impact.acquire.DeviceManager object. |
[in] | requestNr | The request number that internally has been assigned to this request by the device driver. |