OrbbecSDK 1.10.18
OrbbecSDK: Software-Development-Kit for Orbbec 3D Cameras
Loading...
Searching...
No Matches
Typedefs
Types.hpp File Reference

Provides SDK structure and enumeration constant definitions (depending on libobsensor/h/ObTypes.h). More...

#include "libobsensor/h/ObTypes.h"
#include <functional>

Go to the source code of this file.

Typedefs

using SendFileCallback = std::function< void(OBFileTranState state, const char *message, uint8_t percent)>
 Callback function for file transfer status updates.
 
using DeviceUpgradeCallback = std::function< void(OBUpgradeState state, const char *message, uint8_t percent)>
 Callback function for device upgrade status updates.
 
using DeviceStateChangedCallback = std::function< void(OBDeviceState state, const char *message)>
 Callback function for device status updates.
 
using GetDataCallback = std::function< void(OBDataTranState state, OBDataChunk *dataChunk)>
 Callback function for getting raw data property data when data and progress callbacks are made.
 
using SetDataCallback = std::function< void(OBDataTranState state, uint8_t percent)>
 Callback function for setting the raw data property when progress callbacks are made.
 

Detailed Description

Provides SDK structure and enumeration constant definitions (depending on libobsensor/h/ObTypes.h).

Definition in file Types.hpp.

Typedef Documentation

◆ SendFileCallback

using SendFileCallback = std::function<void(OBFileTranState state, const char *message, uint8_t percent)>

Callback function for file transfer status updates.

Parameters
stateThe file transfer status.
messageStatus information.
percentThe percentage of the file that has been transferred.

Definition at line 23 of file Types.hpp.

◆ DeviceUpgradeCallback

using DeviceUpgradeCallback = std::function<void(OBUpgradeState state, const char *message, uint8_t percent)>

Callback function for device upgrade status updates.

Parameters
stateThe device upgrade status.
messageStatus information.
percentThe percentage of the upgrade that has been completed.

Definition at line 32 of file Types.hpp.

◆ DeviceStateChangedCallback

using DeviceStateChangedCallback = std::function<void(OBDeviceState state, const char *message)>

Callback function for device status updates.

Parameters
stateThe device status.
messageStatus information.

Definition at line 40 of file Types.hpp.

◆ GetDataCallback

using GetDataCallback = std::function<void(OBDataTranState state, OBDataChunk *dataChunk)>

Callback function for getting raw data property data when data and progress callbacks are made.

Parameters
dataChunkThe data chunk.
stateThe status of getting the data.

Definition at line 48 of file Types.hpp.

◆ SetDataCallback

using SetDataCallback = std::function<void(OBDataTranState state, uint8_t percent)>

Callback function for setting the raw data property when progress callbacks are made.

Parameters
percentThe progress percentage.
stateThe status of setting the data.

Definition at line 56 of file Types.hpp.