OSVR-Core  0.6-1962-g59773924
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
osvr::clientkit Namespace Reference

Contains C++ header-only wrappers for the ClientKit C API.Use of these wrappers is optional: they duplicate functionality found in the C API as they are implemented in headers on top of the C API. However, they also provide a much cleaner, low-boilerplate interface for the most common operations. More...

Classes

class  ClientContext
 Client context object: Create and keep one in your application. Handles lifetime management and provides access to ClientKit functionality. More...
 
class  DisplayConfig
 Class wrapping OSVR_DisplayConfig objects, optionally managing shared ownership. More...
 
class  Eye
 Wrapper for a viewer and eye bound to a display config. DOES NOT provide lifetime management for the associated display config! More...
 
struct  ImagingReport
 The user-friendly imaging report. Note that passing this around by value is OK (doesn't copy the image), and the easiest way to ensure that the image buffer doesn't get freed before you're done using it. More...
 
class  Interface
 Interface handle object. Typically acquired from a ClientContext. More...
 
class  Surface
 Wrapper for a viewer, eye, and surface bound to a display config. DOES NOT provide lifetime management for the associated display config! More...
 
class  Viewer
 Wrapper for a viewer bound to a display config. DOES NOT provide lifetime management for the associated display config! More...
 

Typedefs

typedef void(* ImagingCallback )(void *userdata, util::time::TimeValue const &timestamp, ImagingReport report)
 The user-friendly imaging callback type.
 

Functions

UnderlyingDisplayConfigPtr getDisplay (ClientContext &ctx)
 Get a shared_ptr to a DisplayConfig (with appropriate deleter pre-loaded)
 
std::string getStringParameter (OSVR_ClientContext ctx, const char path[])
 Get a string parameter value from the given path. More...
 

Detailed Description

Contains C++ header-only wrappers for the ClientKit C API.

Use of these wrappers is optional: they duplicate functionality found in the C API as they are implemented in headers on top of the C API. However, they also provide a much cleaner, low-boilerplate interface for the most common operations.

Some functionality may not be "wrapped" in a C++ API, however, it is always possible to extract the C entities being wrapped and use them with the C API in those cases.

Function Documentation

std::string osvr::clientkit::getStringParameter ( OSVR_ClientContext  ctx,
const char  path[] 
)
inline

Get a string parameter value from the given path.

Parameters
ctxClient context
pathA resource path (null-terminated string)
Returns
parameter value, or empty string if parameter does not exist or is not a string.

Definition at line 44 of file Parameters.h.