|
Monado OpenXR Runtime
|
CRTP glue wrapper for xrt_imu_sink. More...
#include <glue/g_imu_sink.hpp>
Public Member Functions | |
| const T & | derived () const noexcept |
| T & | derived () noexcept |
| const xrt_imu_sink * | getImuSink () const noexcept |
| xrt_imu_sink * | getImuSink () noexcept |
Static Public Member Functions | |
| static const T * | fromImuSink (const xrt_imu_sink *sink) noexcept |
| static T * | fromImuSink (xrt_imu_sink *sink) noexcept |
CRTP glue wrapper for xrt_imu_sink.
Relies on standard layout to recover the derived object from the C struct, and has some requirements and limitations because of that. See C++ glue wrappers for the guide and conventions for these wrappers.
The derived class T must implement void pushImu(xrt_imu_sample &sample). Exceptions thrown from it are caught and logged. Unlike frame sinks, IMU sinks are not part of a frame context graph, so the derived class manages its own lifetime.