25 #ifndef INCLUDED_PathElementTools_h_GUID_9246E2D5_1598_409F_BD30_1817FA2C1FB2
26 #define INCLUDED_PathElementTools_h_GUID_9246E2D5_1598_409F_BD30_1817FA2C1FB2
41 #ifndef OSVR_DOXYGEN_EXTERNAL
44 AliasPriority priority;
48 switch (wrapper.priority) {
49 case ALIASPRIORITY_MINIMUM:
50 os <<
"Minimum (" << int(ALIASPRIORITY_MINIMUM) <<
")";
53 case ALIASPRIORITY_AUTOMATIC:
54 os <<
"Automatic (" << int(ALIASPRIORITY_AUTOMATIC) <<
")";
56 case ALIASPRIORITY_SEMANTICROUTE:
57 os <<
"Semantic Route (" << int(ALIASPRIORITY_SEMANTICROUTE)
60 case ALIASPRIORITY_MANUAL:
61 os <<
"Manual/Max (" << int(ALIASPRIORITY_MANUAL) <<
")";
64 os << int(ALIASPRIORITY_MANUAL);
87 template <
typename ElementType>
inline const char *
getTypeName() {
106 #endif // INCLUDED_PathElementTools_h_GUID_9246E2D5_1598_409F_BD30_1817FA2C1FB2
detail::AliasPriorityWrapper outputPriority(AliasPriority priority)
Helper method to output a priority in a formatted way to a stream.
size_t getMaxTypeNameLength()
Gets the length of the longest type name.
const char * getTypeName(PathElement const &elt)
Gets a string that indicates the type of path element. Do not use this for conditionals/comparisons u...
bool isNull(PathElement const &elt)
Returns true if the path element provided is a NullElement.
Namespace for the various element types that may constitute a node in the path tree.
void ifNullReplaceWith(PathElement &dest, PathElement const &src)
If dest is a NullElement, replace it with the provided src element.
Automatically-generated export header - do not edit!
boost::variant< NullElement, AliasElement, SensorElement, InterfaceElement, DeviceElement, PluginElement, StringElement > PathElement
The variant type containing a particular kind of path element.