Encapsulates the GenTL event data functions.
More...
#include <peak/event/peak_event.hpp>
Encapsulates the GenTL event data functions.
◆ Event() [1/3]
| peak::core::Event::Event |
( |
| ) |
|
|
delete |
◆ ~Event()
| peak::core::Event::~Event |
( |
| ) |
|
|
inline |
◆ Event() [2/3]
| peak::core::Event::Event |
( |
const Event & |
other | ) |
|
|
delete |
◆ Event() [3/3]
| peak::core::Event::Event |
( |
Event && |
other | ) |
|
|
delete |
◆ Data()
| std::vector< uint8_t > peak::core::Event::Data |
( |
| ) |
const |
|
inline |
Returns the event payload data.
The delivered data depend on the event type.
- Returns
- Payload data
- Since
- 1.0
- Exceptions
-
◆ ID()
| uint64_t peak::core::Event::ID |
( |
| ) |
const |
|
inline |
Returns the ID.
- Returns
- ID
- Since
- 1.0
- Exceptions
-
◆ Info()
Delivers information based on the given GenTL info command.
- Parameters
-
| [in] | infoCommand | The GenTL info command. |
This function can be used to query information going beyond the predefined info functions, based on the GenTL info commands of the corresponding module.
Example (error handling is omitted):
auto info = object->Info(GenTL::XX_INFO_XX);
{
uint64_t uint64Var = *reinterpret_cast<const uint64_t*>(info.data.data());
}
{
...
}
...
- Returns
- Raw information according to the passed info command
- Since
- 1.0
- Exceptions
-
◆ operator=() [1/2]
| Event& peak::core::Event::operator= |
( |
const Event & |
other | ) |
|
|
delete |
◆ operator=() [2/2]
| Event& peak::core::Event::operator= |
( |
Event && |
other | ) |
|
|
delete |
◆ RawData()
| std::vector< uint8_t > peak::core::Event::RawData |
( |
| ) |
const |
|
inline |
Returns the event raw data.
The delivered data depend on the underlying transport layer (GEV, USB3, ...) and the event type. (e.g. If the underlying CTI implements GEV and the event is a remote device event, the delivered data will be the event raw data of a GEV event)
- Returns
- Raw data
- Since
- 1.2
◆ Type()
Returns the type.
- Returns
- Type
- Since
- 1.0
The documentation for this class was generated from the following file: