OSVR-Core
Public Member Functions | List of all members
osvr::common::OriginalSource Class Reference

The result of resolving a tree node to a device: either an original source to connect to, or nothing. More...

#include <OriginalSource.h>

Public Member Functions

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

Member Function Documentation

§ decompose()

void osvr::common::OriginalSource::decompose ( PathNode node)

Decompose a path node representing an original source into its device, interface, and sensor.


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