25 #ifndef INCLUDED_TreeNodeFullPath_h_GUID_46FC8EF9_1977_4086_CC13_D85136A55414 26 #define INCLUDED_TreeNodeFullPath_h_GUID_46FC8EF9_1977_4086_CC13_D85136A55414 41 inline void buildPathRecursively(util::TreeNode<T>
const &node,
42 const char pathSeparator[],
44 auto parent = node.getParent();
46 buildPathRecursively(*parent, pathSeparator, os);
49 os << pathSeparator << node.getName();
57 const char pathSeparator[]) {
60 return std::string(pathSeparator);
62 std::ostringstream os;
63 buildPathRecursively(node, pathSeparator, os);
71 #endif // INCLUDED_TreeNodeFullPath_h_GUID_46FC8EF9_1977_4086_CC13_D85136A55414 Definition: RunLoopManager.h:42
A node in a generic tree, which can contain an object by value.
Definition: TreeNode.h:72
The main namespace for all C++ elements of the framework, internal and external.
Definition: namespace_osvr.dox:3
std::string getTreeNodeFullPath(util::TreeNode< T > const &node, const char pathSeparator[])
Given a tree node and a path separator, get the full path identifying that tree node.
Definition: TreeNodeFullPath.h:56
bool isRoot() const
Is the current node a root node?
Definition: TreeNode.h:276