OSVR-Core
Classes | Namespaces | Typedefs | Functions
WrapCallback.h File Reference

Header. More...

#include <osvr/Util/TimeValue.h>
#include <functional>
#include <memory>

Go to the source code of this file.

Classes

struct  osvr::pluginkit::detail::CallbackType_impl< ReportType >
 

Namespaces

 osvr
 The main namespace for all C++ elements of the framework, internal and external.
 
 osvr::pluginkit
 Contains C++ header-only wrappers for the PluginKit C API.
 
 osvr::pluginkit::detail
 Internal implementation-only namespace.
 

Typedefs

template<typename ReportType >
using osvr::pluginkit::detail::WrappedCallbackFunction = std::function< void(const OSVR_TimeValue *, const ReportType *)>
 
template<typename ReportType >
using osvr::pluginkit::detail::WrappedCallbackPtr = std::unique_ptr< WrappedCallbackFunction< ReportType >>
 
template<typename ReportType >
using osvr::pluginkit::detail::CallbackType = typename CallbackType_impl< ReportType >::type
 

Functions

template<typename ReportType >
void osvr::pluginkit::detail::callbackCaller (void *userdata, const OSVR_TimeValue *timestamp, const ReportType *report)
 
template<typename ReportType >
CallbackType< ReportType > osvr::pluginkit::detail::getCaller ()
 
template<typename ReportType , typename F >
std::pair< CallbackType< ReportType >, WrappedCallbackPtr< ReportType > > osvr::pluginkit::detail::wrapCallback (F &&f)
 

Detailed Description

Header.

Date
2015
Author
Sensics, Inc. http://sensics.com/osvr