13#include <peak/dll_interface/peak_dll_interface_util.hpp>
71 auto eventControllerHandle = QueryNumericFromCInterfaceFunction<PEAK_EVENT_CONTROLLER_HANDLE>(
74 eventSupportingModuleHandle,
static_cast<PEAK_EVENT_TYPE>(type), _eventControllerHandle);
77 return std::make_unique<ClassCreator<EventController>>(eventControllerHandle);
EventSupportingModule(const EventSupportingModule &other)=delete
PEAK_COMMON_NO_DISCARD std::unique_ptr< EventController > EnableEvents(EventType type)
Enables events of the given event type.
Definition peak_event_supporting_module.hpp:67
EventSupportingModule()=default
EventSupportingModule & operator=(EventSupportingModule &&other)=delete
~EventSupportingModule() override=default
EventSupportingModule(EventSupportingModule &&other)=delete
EventSupportingModule & operator=(const EventSupportingModule &other)=delete
virtual PEAK_EVENT_SUPPORTING_MODULE_HANDLE EventSupportingModuleHandle() const =0
EventType
Different types of events.
Definition peak_event.hpp:33
The "core" namespace contains the direct GenAPI and GenTL wrapper.
Definition peak_buffer.hpp:32
The "peak" namespace directly contains convenience functionality like the DeviceManager as well as th...
Definition peak_buffer.hpp:29
PEAK_C_API PEAK_EventSupportingModule_EnableEvents(PEAK_EVENT_SUPPORTING_MODULE_HANDLE eventSupportingModuleHandle, PEAK_EVENT_TYPE eventType, PEAK_EVENT_CONTROLLER_HANDLE *eventControllerHandle)
Tells the given event-supporting module to enable events of the given type.
int32_t PEAK_EVENT_TYPE
Definition peak_backend.h:183
struct PEAK_EVENT_SUPPORTING_MODULE * PEAK_EVENT_SUPPORTING_MODULE_HANDLE
Definition peak_backend.h:475
struct PEAK_EVENT_CONTROLLER * PEAK_EVENT_CONTROLLER_HANDLE
Definition peak_backend.h:479
#define PEAK_COMMON_NO_DISCARD
Definition peak_common_defines.h:89
#define PEAK_C_ABI_PREFIX
Definition peak_dll_defines.h:13