|
Monado OpenXR Runtime
|
CRTP glue wrapper for xrt_fs. More...
#include <glue/g_frameserver.hpp>
Public Member Functions | |
| const T & | derived () const noexcept |
| T & | derived () noexcept |
| const xrt_fs * | getXFS () const noexcept |
| xrt_fs * | getXFS () noexcept |
Static Public Member Functions | |
| static const T * | fromXFS (const xrt_fs *xfs) noexcept |
| static T * | fromXFS (xrt_fs *xfs) noexcept |
CRTP glue wrapper for xrt_fs.
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.
xrt_fs has no destroy function, a frameserver is instead destroyed through a xrt_frame_node added to a xrt_frame_context, see FrameNodeBase.
The identifying fields (name, product, manufacturer, serial and source_id) are zeroed and are to be filled in by the derived class via getXFS.