16 #include <peak/dll_interface/peak_dll_interface_util.hpp> 86 std::vector<uint8_t> Data()
const;
110 std::vector<uint8_t>
RawData()
const;
114 friend ClassCreator<Event>;
129 : m_backendHandle(eventHandle)
134 return QueryRawInformationFromCInterfaceFunction([&](int32_t* dataType, uint8_t* buffer,
size_t* bufferSize) {
141 return QueryNumericFromCInterfaceFunction<uint64_t>(
147 return QueryNumericArrayFromCInterfaceFunction<uint8_t>([&](uint8_t* data,
size_t* dataSize) {
154 return static_cast<EventType>(QueryNumericFromCInterfaceFunction<PEAK_EVENT_TYPE>(
160 return QueryNumericArrayFromCInterfaceFunction<uint8_t>([&](uint8_t* rawData,
size_t* rawDataSize) {
172 std::string entryString;
176 entryString =
"Error";
180 entryString =
"FeatureInvalidate";
184 entryString =
"FeatureChange";
188 entryString =
"RemoteDevice";
192 entryString =
"Module";
196 entryString =
"Custom";
Represents a GenAPI node map.
Definition: peak_node_map.hpp:59
std::vector< uint8_t > Data() const
Returns the event payload data.
Definition: peak_event.hpp:145
EventType
Different types of events.
Definition: peak_event.hpp:34
The "peak" namespace directly contains convenience functionality like the DeviceManager as well as th...
Definition: peak_dynamic_loader.h:32
std::string ToString(BufferPayloadType entry)
Definition: peak_buffer.hpp:505
PEAK_C_API PEAK_Event_GetType(PEAK_EVENT_HANDLE eventHandle, PEAK_EVENT_TYPE *type)
Asks the given event for its type.
~Event()
Definition: peak_event.hpp:165
int32_t PEAK_EVENT_TYPE
Definition: peak_backend.h:168
EventType Type() const
Returns the type.
Definition: peak_event.hpp:152
PEAK_C_API PEAK_Event_GetID(PEAK_EVENT_HANDLE eventHandle, uint64_t *id)
Asks the given event for its ID.
PEAK_C_API PEAK_Event_GetData(PEAK_EVENT_HANDLE eventHandle, uint8_t *data, size_t *dataSize)
Asks the given event for its data.
uint64_t ID() const
Returns the ID.
Definition: peak_event.hpp:139
struct PEAK_EVENT * PEAK_EVENT_HANDLE
Definition: peak_backend.h:467
PEAK_C_API PEAK_Event_Destruct(PEAK_EVENT_HANDLE eventHandle)
Destroys the given event.
RawInformation Info(int32_t infoCommand) const
Delivers information based on the given GenTL info command.
Definition: peak_event.hpp:132
Encapsulates the GenTL event data functions.
Definition: peak_event.hpp:51
std::vector< uint8_t > RawData() const
Returns the event raw data.
Definition: peak_event.hpp:158
#define PEAK_C_ABI_PREFIX
Definition: peak_dll_defines.h:16
PEAK_C_API PEAK_Event_GetRawData(PEAK_EVENT_HANDLE eventHandle, uint8_t *rawData, size_t *rawDataSize)
Asks the given event for its raw data.
PEAK_C_API PEAK_Event_GetInfo(PEAK_EVENT_HANDLE eventHandle, int32_t infoCommand, int32_t *infoDataType, uint8_t *info, size_t *infoSize)
Asks the given event for an information based on a specific command.