OrbbecSDK 1.10.18
OrbbecSDK: Software-Development-Kit for Orbbec 3D Cameras
Loading...
Searching...
No Matches
Types.hpp
Go to the documentation of this file.
1
6#pragma once
7
9
10#include <functional>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
23using SendFileCallback = std::function<void(OBFileTranState state, const char *message, uint8_t percent)>;
24
32using DeviceUpgradeCallback = std::function<void(OBUpgradeState state, const char *message, uint8_t percent)>;
33
40using DeviceStateChangedCallback = std::function<void(OBDeviceState state, const char *message)>;
41
48using GetDataCallback = std::function<void(OBDataTranState state, OBDataChunk *dataChunk)>;
49
56using SetDataCallback = std::function<void(OBDataTranState state, uint8_t percent)>;
57
58#ifdef __cplusplus
59}
60#endif
Provide structs commonly used in the SDK, enumerating constant definitions.
uint64_t OBDeviceState
Device state.
Definition ObTypes.h:644
OBDataTranState
Enumeration value describing the data transfer status.
Definition ObTypes.h:298
OBFileTranState
Enumeration value describing the file transfer status.
Definition ObTypes.h:282
OBUpgradeState
Enumeration value describing the firmware upgrade status.
Definition ObTypes.h:261
std::function< void(OBDeviceState state, const char *message)> DeviceStateChangedCallback
Callback function for device status updates.
Definition Types.hpp:40
std::function< void(OBDataTranState state, uint8_t percent)> SetDataCallback
Callback function for setting the raw data property when progress callbacks are made.
Definition Types.hpp:56
std::function< void(OBUpgradeState state, const char *message, uint8_t percent)> DeviceUpgradeCallback
Callback function for device upgrade status updates.
Definition Types.hpp:32
std::function< void(OBDataTranState state, OBDataChunk *dataChunk)> GetDataCallback
Callback function for getting raw data property data when data and progress callbacks are made.
Definition Types.hpp:48
std::function< void(OBFileTranState state, const char *message, uint8_t percent)> SendFileCallback
Callback function for file transfer status updates.
Definition Types.hpp:23
Structure for transmitting data blocks.
Definition ObTypes.h:315