OSVR Framework (Internal Development Docs)  0.6-1962-g59773924
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
osvr::common::OriginalSource Class Reference

The result of resolving a tree node to a device: either an original source to connect to, or nothing. Typically wrapped in boost::optional for return from functions. More...

#include <osvr/Common/OriginalSource.h>

Public Member Functions

void decompose (PathNode &node)
 Decompose a path node representing an original source into its device, interface, and sensor.
 
bool isResolved () const
 
void setDevice (PathNode &device)
 
void setInterface (PathNode &iface)
 
void setSensor (PathNode &sensor)
 
void nestTransform (Json::Value const &transform)
 
PathNodegetDevice () const
 
std::string getDevicePath () const
 Gets the full path of the device node.
 
elements::DeviceElement const & getDeviceElement () const
 
PathNodegetInterface () const
 
std::string getInterfaceName () const
 
PathNodegetSensor () const
 
boost::optional< int > getSensorNumber () const
 
boost::optional
< OSVR_ChannelCount
getSensorNumberAsChannelCount () const
 
Json::Value getTransformJson () const
 
bool hasTransform () const
 

Detailed Description

The result of resolving a tree node to a device: either an original source to connect to, or nothing. Typically wrapped in boost::optional for return from functions.

Definition at line 47 of file OriginalSource.h.


The documentation for this class was generated from the following files: