25 #ifndef INCLUDED_PathElementTools_h_GUID_9246E2D5_1598_409F_BD30_1817FA2C1FB2 26 #define INCLUDED_PathElementTools_h_GUID_9246E2D5_1598_409F_BD30_1817FA2C1FB2 29 #include <osvr/Common/Export.h> 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.
Definition: PathElementTools.h:74
OSVR_COMMON_EXPORT size_t getMaxTypeNameLength()
Gets the length of the longest type name.
Definition: PathElementTools.cpp:108
Handles spatial transformations.
Definition: SerializationTraitExample_Complicated.h:40
OSVR_COMMON_EXPORT const char * getTypeName(PathElement const &elt)
Gets a string that indicates the type of path element.
Definition: PathElementTools.cpp:77
The main namespace for all C++ elements of the framework, internal and external.
Definition: namespace_osvr.dox:3
Definition: PathElementTools.h:43
Definition: newuoa.h:1888
bool isNull(PathElement const &elt)
Returns true if the path element provided is a NullElement.
Definition: PathElementTools.cpp:87
Namespace for the various element types that may constitute a node in the path tree.
Definition: PathElementTools.h:78
void ifNullReplaceWith(PathElement &dest, PathElement const &src)
If dest is a NullElement, replace it with the provided src element.
Definition: PathElementTools.cpp:81
boost::variant< NullElement, AliasElement, ArticulationElement, SensorElement, InterfaceElement, DeviceElement, PluginElement, StringElement > PathElement
The variant type containing a particular kind of path element.
Definition: PathElementTypes_fwd.h:54
OSVR_COMMON_EXPORT const char * getTypeName(PathNode const &node)
Gets an identifying string for the node value type.
Definition: PathNode.cpp:39