Observer interface for an observable PvSystem object. More...
Public Member Functions | |
PvSystemEventSink () | |
Constructor. | |
virtual | ~PvSystemEventSink () |
Destructor. | |
virtual void | OnDeviceFound (const PvInterface *aInterface, const PvDeviceInfo *aDeviceInfo, bool &aIgnore) |
Filter found devices. More... | |
Observer interface for an observable PvSystem object.
PvSystemEventSink contains a callback that lets you define what happens when a PvSystem object finds a GigE Vision, USB3 Vision or Pleora Protocol device. The actual behavior is for you to define, but you could use this class to:
To comply with the auto-find controller (PvSystemEventSink object) protocol:
To use the auto-find controller (PvSystemEventSink object):
|
virtual |
Filter found devices.
This method lets you control how devices are treated, once found.
The aIgnore parameter lets you control (using your own code) whether devices appear in the list of found devices. However, the method provides enough information that you can use it for other purposes. For example, you might use the method to automatically select or automatically connect to a device the moment it is found (reducing the time for the overall find-select-connect process).
[in] | aInterface | A pointer to the interface on which the device was found. |
[in] | aDeviceInfo | A pointer to the connectivity information for the found device. |
[out] | aIgnore | True to treat the device as if it wasn't found; otherwise, false. |
Copyright (c) 2002-2021 Pleora Technologies Inc.
www.pleora.com