OSVR-Core
Namespaces | Macros | Functions
PathElementTools.cpp File Reference

Implementation. More...

#include <osvr/Common/PathElementTools.h>
#include <osvr/Common/PathElementTypes.h>
#include <boost/mpl/for_each.hpp>
#include <boost/variant/apply_visitor.hpp>
#include <boost/variant/get.hpp>
#include <boost/variant/static_visitor.hpp>
#include <algorithm>
#include <string.h>

Namespaces

 osvr
 The main namespace for all C++ elements of the framework, internal and external.
 
 osvr::common
 Handles spatial transformations.
 
 osvr::common::elements
 Namespace for the various element types that may constitute a node in the path tree.
 

Macros

#define OSVR_ROUTING_TYPENAME_HANDLER(CLASS)
 Macro defining a specialization of ElementTypeName to return the type name as a string literal. More...
 

Functions

OSVR_COMMON_EXPORT const char * osvr::common::elements::getTypeName (PathElement const &elt)
 Gets a string that indicates the type of path element. More...
 
void osvr::common::elements::ifNullReplaceWith (PathElement &dest, PathElement const &src)
 If dest is a NullElement, replace it with the provided src element. More...
 
bool osvr::common::elements::isNull (PathElement const &elt)
 Returns true if the path element provided is a NullElement.
 
OSVR_COMMON_EXPORT size_t osvr::common::elements::getMaxTypeNameLength ()
 Gets the length of the longest type name.
 

Detailed Description

Implementation.

Date
2014
Author
Sensics, Inc. http://sensics.com/osvr

Macro Definition Documentation

§ OSVR_ROUTING_TYPENAME_HANDLER

#define OSVR_ROUTING_TYPENAME_HANDLER (   CLASS)
Value:
template <> struct ElementTypeName<CLASS> { \
static const char *get() { return #CLASS; } \
};

Macro defining a specialization of ElementTypeName to return the type name as a string literal.