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. | |
template<typename T > | |
void | operator() (PathNode const &node, T const &elt) |
Catch-all for other element types. | |
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.
Definition at line 70 of file osvr_print_tree.cpp.
|
inline |
Print aliases.
Check to see if this alias fully resolved, and warn if it didn't.
Definition at line 97 of file osvr_print_tree.cpp.