Spinnaker SDK C++
4.2.0.21
 
 

 
Loading...
Searching...
No Matches

A handler to device arrival and removal events on all interfaces. More...

#include <InterfaceEventHandler.h>

Inheritance diagram for InterfaceEventHandler:
IInterfaceEventHandler IDeviceArrivalEventHandler IDeviceRemovalEventHandler EventHandler EventHandler InterfaceEventHandlerImpl

Public Member Functions

 InterfaceEventHandler ()
 Default constructor.
 
virtual ~InterfaceEventHandler ()
 Virtual destructor.
 
virtual void OnDeviceArrival (CameraPtr pCamera)=0
 Device arrival event callback.
 
virtual void OnDeviceRemoval (CameraPtr pCamera)=0
 Callback to the device removal event.
 
- Public Member Functions inherited from IInterfaceEventHandler
virtual ~IInterfaceEventHandler ()
 
virtual void OnDeviceArrival (CameraPtr pCamera)=0
 
virtual void OnDeviceRemoval (CameraPtr pCamera)=0
 
- Public Member Functions inherited from IDeviceArrivalEventHandler
virtual ~IDeviceArrivalEventHandler ()
 
virtual void OnDeviceArrival (CameraPtr pCamera)=0
 
- Public Member Functions inherited from EventHandler
virtual ~EventHandler ()
 Virtual Destructor.
 
void SetEventType (EventType eventType)
 Sets the event type.
 
EventType GetEventType ()
 Gets the event type.
 
const uint8_t * GetEventPayloadData ()
 Gets the event payload data.
 
const size_t GetEventPayloadDataSize ()
 Gets the event payload data size.
 
- Public Member Functions inherited from IDeviceRemovalEventHandler
virtual ~IDeviceRemovalEventHandler ()
 
virtual void OnDeviceRemoval (CameraPtr pCamera)=0
 

Protected Member Functions

InterfaceEventHandleroperator= (const InterfaceEventHandler &)
 Assignment operator.
 
- Protected Member Functions inherited from IInterfaceEventHandler
 IInterfaceEventHandler ()
 
 IInterfaceEventHandler (const IInterfaceEventHandler &)
 
IInterfaceEventHandleroperator= (const IInterfaceEventHandler &)
 
- Protected Member Functions inherited from IDeviceArrivalEventHandler
 IDeviceArrivalEventHandler ()
 
 IDeviceArrivalEventHandler (const IDeviceArrivalEventHandler &)
 
IDeviceArrivalEventHandleroperator= (const IDeviceArrivalEventHandler &)
 
- Protected Member Functions inherited from EventHandler
 EventHandler ()
 
EventHandleroperator= (const EventHandler &)
 
void SetEventPayload (uint8_t *offset, size_t length)
 
- Protected Member Functions inherited from IDeviceRemovalEventHandler
 IDeviceRemovalEventHandler ()
 
 IDeviceRemovalEventHandler (const IDeviceRemovalEventHandler &)
 
IDeviceRemovalEventHandleroperator= (const IDeviceRemovalEventHandler &)
 

Additional Inherited Members

- Protected Attributes inherited from EventHandler
EventData * m_pEventData
 

Detailed Description

A handler to device arrival and removal events on all interfaces.

Examples
AcquisitionMultipleCameraRecovery.cpp.

Constructor & Destructor Documentation

◆ InterfaceEventHandler()

Default constructor.

◆ ~InterfaceEventHandler()

virtual ~InterfaceEventHandler ( )
virtual

Virtual destructor.

Member Function Documentation

◆ OnDeviceArrival()

virtual void OnDeviceArrival ( CameraPtr  pCamera)
pure virtual

Device arrival event callback.

Parameters
pCameraReference tracked pointer to Camera object of the device attached to the system

Implements IInterfaceEventHandler.

Implemented in InterfaceEventHandlerImpl, and InterfaceEventHandlerImpl.

◆ OnDeviceRemoval()

virtual void OnDeviceRemoval ( CameraPtr  pCamera)
pure virtual

Callback to the device removal event.

Parameters
pCameraReference tracked pointer to Camera object of the device removed from the system

Implements IInterfaceEventHandler.

Implemented in InterfaceEventHandlerImpl, and InterfaceEventHandlerImpl.

◆ operator=()

InterfaceEventHandler & operator= ( const InterfaceEventHandler )
protected

Assignment operator.


The documentation for this class was generated from the following file: