| 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
8#include "libobsensor/h/ObTypes.h"
9
10#include <functional>
11
12#ifdef __cplusplus
13 extern "C" {
14#endif
15
23 using SendFileCallback = std::function<void(OBFileTranState state, const char *message, uint8_t percent)>;
24
32 using DeviceUpgradeCallback = std::function<void(OBUpgradeState state, const char *message, uint8_t percent)>;
33
40 using DeviceStateChangedCallback = std::function<void(OBDeviceState state, const char *message)>;
41
48 using GetDataCallback = std::function<void(OBDataTranState state, OBDataChunk *dataChunk)>;
49
56 using SetDataCallback = std::function<void(OBDataTranState state, uint8_t percent)>;
57
58#ifdef __cplusplus
59}
60#endif
ObTypes.h
Provide structs commonly used in the SDK, enumerating constant definitions.
OBDeviceState
uint64_t OBDeviceState
Device state.
Definition ObTypes.h:644
OBDataTranState
OBDataTranState
Enumeration value describing the data transfer status.
Definition ObTypes.h:298
OBFileTranState
OBFileTranState
Enumeration value describing the file transfer status.
Definition ObTypes.h:282
OBUpgradeState
OBUpgradeState
Enumeration value describing the firmware upgrade status.
Definition ObTypes.h:261
DeviceStateChangedCallback
std::function< void(OBDeviceState state, const char *message)> DeviceStateChangedCallback
Callback function for device status updates.
Definition Types.hpp:40
SetDataCallback
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
DeviceUpgradeCallback
std::function< void(OBUpgradeState state, const char *message, uint8_t percent)> DeviceUpgradeCallback
Callback function for device upgrade status updates.
Definition Types.hpp:32
GetDataCallback
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
SendFileCallback
std::function< void(OBFileTranState state, const char *message, uint8_t percent)> SendFileCallback
Callback function for file transfer status updates.
Definition Types.hpp:23
OBDataChunk
Structure for transmitting data blocks.
Definition ObTypes.h:315