57 PROFILER_EVENT_DISCONNECTED = 0x0001,
58 PROFILER_EVENT_ALL = 0xFFFF,
79 "Please use @ref registerProfilerEventCallback(Profiler& profiler, Event event, const "
80 "ProfilerEventCallback& callback) instead.")]]
static ErrorStatus
89 std::string eventName{};
90 uint16_t eventId{0x0000};
93 EventInfo(
const std::string& eventName, uint16_t eventId)
94 : eventName(eventName), eventId(eventId)
110 std::vector<EventInfo>& eventInfos);
115 std::string eventName{};
116 int64_t timestamp{0};
156 std::function<void(
const EventData* eventData,
const void* extraPayload)>;
#define MMIND_API_EXPORT
Definition api_global.h:48
Describes the event of profiler. Use ProfilerEvent::registerProfilerEventCallback to register an even...
Definition ProfilerEvent.h:49
std::function< void(const EventData *eventData, const void *extraPayload)> ProfilerEventCallback
callback function for a camera event.
Definition ProfilerEvent.h:156
std::vector< PayloadMember > Payload
Definition ProfilerEvent.h:148
static ErrorStatus registerProfilerEventCallback(Profiler &profiler, uint16_t event, const ProfilerEventCallback &callback)
Registers a callback function to be executed when the specified Event occurs on the specified Profile...
Event
Describes the types of Event.
Definition ProfilerEvent.h:56
std::function< void(Event event, void *pUser)> EventCallback
Definition ProfilerEvent.h:61
static ErrorStatus getSupportedEvents(const Profiler &profiler, std::vector< EventInfo > &eventInfos)
Get supported events by the profiler.
static ErrorStatus unregisterProfilerEventCallback(Profiler &profiler, uint16_t event)
Cancels the registration of a callback function for the specified event and Profiler object.
static ErrorStatus registerProfilerEventCallback(Profiler &profiler, EventCallback callback, void *pUser, unsigned int events)
Registers a profiler event of interest.
Operates the laser profiler. Use Profiler::connect to connect an available laser profiler,...
Definition Profiler.h:100
Describes the types of errors.
Definition ErrorStatus.h:12
Definition ProfilerEvent.h:113
Describes the event information.
Definition ProfilerEvent.h:88
EventInfo(const std::string &eventName, uint16_t eventId)
Definition ProfilerEvent.h:93
Definition ProfilerEvent.h:136
uint32_t uint32Value
Definition ProfilerEvent.h:137
int64_t int64Value
Definition ProfilerEvent.h:139
std::string stringValue
Definition ProfilerEvent.h:143
double doubleValue
Definition ProfilerEvent.h:141
int32_t int32Value
Definition ProfilerEvent.h:138
bool boolValue
Definition ProfilerEvent.h:142
float floatValue
Definition ProfilerEvent.h:140
Describes the data member of the event's payload.
Definition ProfilerEvent.h:123
Type
Definition ProfilerEvent.h:125
std::string name
Member name.
Definition ProfilerEvent.h:124
MemberValue value
Member value.
Definition ProfilerEvent.h:145
Type type
Member type.
Definition ProfilerEvent.h:134