16#include <peak/dll_interface/peak_dll_interface_util.hpp>
74 auto eventControllerHandle = QueryNumericFromCInterfaceFunction<PEAK_EVENT_CONTROLLER_HANDLE>(
77 eventSupportingModuleHandle,
static_cast<PEAK_EVENT_TYPE>(type), _eventControllerHandle);
80 return std::make_unique<ClassCreator<EventController>>(eventControllerHandle);
EventSupportingModule(const EventSupportingModule &other)=delete
std::unique_ptr< EventController > EnableEvents(EventType type)
Enables events of the given event type.
Definition peak_event_supporting_module.hpp:70
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
The "core" namespace contains the direct GenAPI and GenTL wrapper.
Definition peak_buffer.hpp:31
EventType
Different types of events.
Definition peak_event.hpp:35
The "peak" namespace directly contains convenience functionality like the DeviceManager as well as th...
Definition peak_dynamic_loader.h:33
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:185
struct PEAK_EVENT_SUPPORTING_MODULE * PEAK_EVENT_SUPPORTING_MODULE_HANDLE
Definition peak_backend.h:477
struct PEAK_EVENT_CONTROLLER * PEAK_EVENT_CONTROLLER_HANDLE
Definition peak_backend.h:481
#define PEAK_C_ABI_PREFIX
Definition peak_dll_defines.h:16