OSVR-Core
Classes | Namespaces | Enumerations | Functions
PathParseAndRetrieve.h File Reference

Header. More...

#include <osvr/Common/RoutingConstants.h>
#include <osvr/Common/RoutingExceptions.h>
#include <osvr/Util/TreeNode.h>
#include <boost/assert.hpp>
#include <boost/algorithm/string/find_iterator.hpp>
#include <boost/algorithm/string/finder.hpp>
#include <boost/range/adaptor/sliced.hpp>
#include <string>

Go to the source code of this file.

Classes

struct  osvr::common::detail::GetOrCreateFunctor
 
struct  osvr::common::detail::GetChildFunctor
 

Namespaces

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

Enumerations

enum  ParentPolicy { GETPARENT_PERMIT, GETPARENT_DENY }
 
enum  AbsolutePolicy { ABSOLUTEPATH_PERMIT, ABSOLUTEPATH_DENY }
 

Functions

template<typename GetChildFunctor , typename Node >
Node & osvr::common::detail::treePathRetrieveImplementation (GetChildFunctor f, Node &node, std::string path, ParentPolicy permitParent=GETPARENT_DENY, AbsolutePolicy permitAbsolute=ABSOLUTEPATH_PERMIT)
 
template<typename ValueType >
util::TreeNode< ValueType > & osvr::common::treePathRetrieve (util::TreeNode< ValueType > &node, std::string path, bool permitParent=false)
 Internal method for parsing a path and getting or creating the nodes along it. More...
 
template<typename ValueType >
util::TreeNode< ValueType > const & osvr::common::treePathRetrieve (util::TreeNode< ValueType > const &node, std::string path, bool permitParent=false)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.This version works with const trees, and does not create missing children: instead it throws util::tree::NoSuchChild. More...
 
template<typename ValueType >
util::TreeNode< ValueType > & osvr::common::pathParseAndRetrieve (util::TreeNode< ValueType > &root, std::string const &path)
 Internal method for parsing a path and getting or creating the nodes along it. More...
 
template<typename ValueType >
util::TreeNode< ValueType > const & osvr::common::pathParseAndRetrieve (util::TreeNode< ValueType > const &root, std::string const &path)
 

Detailed Description

Header.

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