| 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

  state | The file transfer status.
  message | Status information.
  percent | The 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

  state | The device upgrade status.
  message | Status information.
  percent | The 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

  state | The device status.
  message | Status 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

  dataChunk | The data chunk.
  state | The 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

  percent | The progress percentage.
  state | The status of setting the data.

Definition at line 56 of file Types.hpp.