OSVR-Core  0.6-1962-g59773924
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Device-related functionality (C++ wrappers)

How to create and report from a device in your plugin. More...

Classes

class  osvr::pluginkit::DeviceToken
 Wrapper class for OSVR_DeviceToken. More...
 

Functions

OSVR_MessageType osvr::pluginkit::registerMessageType (OSVR_PluginRegContext ctx, const char *name)
 Register or recall a message type by name. More...
 
OSVR_MessageType osvr::pluginkit::registerMessageType (OSVR_PluginRegContext ctx, std::string const &name)
 

Detailed Description

How to create and report from a device in your plugin.

Function Documentation

OSVR_MessageType osvr::pluginkit::registerMessageType ( OSVR_PluginRegContext  ctx,
const char *  name 
)
inline

#include <osvr/PluginKit/DeviceInterface.h>

Register or recall a message type by name.

Parameters
ctxThe plugin registration context received by your entry point function.
nameA unique name for the message type. The library makes a copy of this string.
Exceptions
std::runtime_errorif message type registration fails

Definition at line 59 of file DeviceInterface.h.

OSVR_MessageType osvr::pluginkit::registerMessageType ( OSVR_PluginRegContext  ctx,
std::string const &  name 
)
inline

#include <osvr/PluginKit/DeviceInterface.h>

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 72 of file DeviceInterface.h.