OSVR-Core
Public Member Functions | List of all members
TreeNodePrinter Class Reference

This functor is applied at each node to get the (type-safe variant) value out of it (hence the numerous overloads of the function call operator - one for each node element type we want to treat differently.) More...

Inheritance diagram for TreeNodePrinter:

Public Member Functions

 TreeNodePrinter (Options opts, std::vector< std::string > const &badAliases)
 Constructor.
 
void operator() (PathNode const &, elements::NullElement const &)
 print nothing for a null element.
 
void operator() (PathNode const &node, elements::SensorElement const &elt)
 We might print something for a sensor element.
 
void operator() (PathNode const &node, elements::AliasElement const &elt)
 Print aliases. More...
 
void operator() (PathNode const &node, elements::DeviceElement const &elt)
 Print Devices.
 
void operator() (PathNode const &node, elements::StringElement const &elt)
 We might print something for a sensor element.
 
void operator() (osvr::common::PathNode const &node, osvr::common::elements::ArticulationElement const &elt)
 
template<typename T >
void operator() (PathNode const &node, T const &elt)
 Catch-all for other element types.
 

Detailed Description

This functor is applied at each node to get the (type-safe variant) value out of it (hence the numerous overloads of the function call operator - one for each node element type we want to treat differently.)

As a "visitor", this visitor visits just a single node - it's used by a simple lambda to visit every node in the path tree.

Member Function Documentation

§ operator()()

void TreeNodePrinter::operator() ( PathNode const &  node,
elements::AliasElement const &  elt 
)
inline

Print aliases.

Check to see if this alias fully resolved, and warn if it didn't.


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