Pleora Technologies Inc. eBUS SDK v6.2.8.5877 API



PvDeviceEventSink.h
1 // *****************************************************************************
2 //
3 // Copyright (c) 2012, Pleora Technologies Inc., All rights reserved.
4 //
5 // *****************************************************************************
6 
7 #ifndef __PVDEVICEEVENTSINK_H__
8 #define __PVDEVICEEVENTSINK_H__
9 
10 #include <PvDevice.h>
11 #include <PvGenParameterList.h>
12 
13 
14 class PvDevice;
15 
16 
17 class PV_DEVICE_API PvDeviceEventSink
18 {
19 public:
20 
22  virtual ~PvDeviceEventSink();
23 
24  // Link disconnected notification
25  virtual void OnLinkDisconnected( PvDevice *aDevice );
26 
27  // Link reconnected notification: deprecated, no longer in use
28  virtual void OnLinkReconnected( PvDevice *aDevice );
29 
30 #ifdef EBUS_PYTHON_DOXYGEN
31  virtual void OnEvent( PvDevice aDevice, int aEventID, int aChannel, int aBlockID, int aTimestamp, ndarray aData );
32 #else
33  // Messaging channel events (raw)
34  virtual void OnEvent( PvDevice *aDevice,
35  uint16_t aEventID, uint16_t aChannel, uint64_t aBlockID, uint64_t aTimestamp,
36  const void *aData, uint32_t aDataLength );
37 #endif
38 
39  // Messaging channel events (GenICam)
40  virtual void OnEventGenICam( PvDevice *aDevice,
41  uint16_t aEventID, uint16_t aChannel, uint64_t aBlockID, uint64_t aTimestamp,
42  PvGenParameterList *aData );
43 
44 #ifdef EBUS_PYTHON_DOXYGEN
45  virtual void OnCmdLinkRead(tuple aBuffer);
46  virtual void OnCmdLinkWrite(tuple aBuffer);
47 #else
48  // GigE Vision command link GenApi::IPort monitoring hooks
49  virtual void OnCmdLinkRead( const void *aBuffer, int64_t aAddress, int64_t aLength );
50  virtual void OnCmdLinkWrite( const void *aBuffer, int64_t aAddress, int64_t aLength );
51 #endif
52 
53 };
54 
55 #endif
PvGenParameterList
Class used to hold a group of PvGenParameter pointers.
Definition: PvGenParameterList.h:23
PvDevice
Connect, configure and control a GigE Vision or USB3 Vision device.
Definition: PvDevice.h:30
PvDeviceEventSink
Observer interface for an observable PvDevice object.
Definition: PvDeviceEventSink.h:17

Copyright (c) 2002-2021 Pleora Technologies Inc.
www.pleora.com