OSVR-Core
Namespaces | Functions
NormalizeDeviceDescriptor.cpp File Reference

Header. More...

#include <boost/type_traits/remove_cv.hpp>
#include <osvr/Common/NormalizeDeviceDescriptor.h>
#include <json/value.h>
#include <json/reader.h>
#include <boost/noncopyable.hpp>
#include <boost/variant/get.hpp>
#include <boost/algorithm/string/predicate.hpp>
#include <boost/algorithm/string/erase.hpp>
#include <boost/algorithm/string.hpp>
#include <iostream>

Namespaces

 osvr
 The main namespace for all C++ elements of the framework, internal and external.
 
 osvr::common
 Handles spatial transformations.
 

Functions

void osvr::common::mergeIdenticalInterfaces (Json::Value &existingIface, Json::Value &newIface, std::string const &detail)
 
void osvr::common::appendCurrentIface (Json::Value &augInterface, Json::Value &currInterface)
 appends json value for a given string More...
 
void osvr::common::normalizeForEyeTracker (Json::Value &descriptor, std::string const &ifaceName)
 For eyetracker, it will add the following interfaces to the descriptor provided that they are set to true: OSVR_Direction, OSVR_Location2D, OSVR_Tracker, OSVR_Button.
 
OSVR_COMMON_EXPORT std::string osvr::common::normalizeDeviceDescriptor (std::string const &jsonDescriptor)
 "Normalizes" a device descriptor by parsing it and adding implied interfaces to the existing device descriptor before serializing it back out to a string. More...
 

Detailed Description

Header.

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