SOFA API  c76874b7
Open source framework for multi-physics simuation
sofa::helper::NameDecoder Class Reference

#include <NameDecoder.h>

Classes

struct  DefaultTypeTemplateName
 
struct  DefaultTypeTemplateName< C< T1, Ts... > >
 

Static Public Member Functions

template<class T >
static std::string getTypeName ()
 Helper method to get the type name. More...
 
template<class T >
static std::string getClassName ()
 Helper method to get the class name. More...
 
template<class T >
static std::string getNamespaceName ()
 Helper method to get the namespace name. More...
 
template<class T >
static std::string getTemplateName ()
 Helper method to get the template name. More...
 
template<class T >
static std::string getShortName ()
 Helper method to get the template name. More...
 
static std::string shortName (const std::string &src)
 
static std::string decodeFullName (const std::type_info &t)
 Helper method to decode the type name. More...
 
static std::string decodeTypeName (const std::type_info &t)
 Helper method to decode the type name to a more readable form if possible. More...
 
static std::string decodeClassName (const std::type_info &t)
 Helper method to extract the class name (removing namespaces and templates) More...
 
static std::string decodeNamespaceName (const std::type_info &t)
 Helper method to extract the namespace (removing class name and templates) More...
 
static std::string decodeTemplateName (const std::type_info &t)
 Helper method to extract the template name (removing namespaces and class name) More...
 

Function details

std::string sofa::helper::NameDecoder::decodeClassName ( const std::type_info &  t)
static

Helper method to extract the class name (removing namespaces and templates)

std::string sofa::helper::NameDecoder::decodeFullName ( const std::type_info &  t)
static

Helper method to decode the type name.

std::string sofa::helper::NameDecoder::decodeNamespaceName ( const std::type_info &  t)
static

Helper method to extract the namespace (removing class name and templates)

std::string sofa::helper::NameDecoder::decodeTemplateName ( const std::type_info &  t)
static

Helper method to extract the template name (removing namespaces and class name)

std::string sofa::helper::NameDecoder::decodeTypeName ( const std::type_info &  t)
static

Helper method to decode the type name to a more readable form if possible.

template<class T >
static std::string sofa::helper::NameDecoder::getClassName ( )
inlinestatic

Helper method to get the class name.

template<class T >
static std::string sofa::helper::NameDecoder::getNamespaceName ( )
inlinestatic

Helper method to get the namespace name.

template<class T >
static std::string sofa::helper::NameDecoder::getShortName ( )
inlinestatic

Helper method to get the template name.

template<class T >
static std::string sofa::helper::NameDecoder::getTemplateName ( )
inlinestatic

Helper method to get the template name.

template<class T >
static std::string sofa::helper::NameDecoder::getTypeName ( )
inlinestatic

Helper method to get the type name.

std::string sofa::helper::NameDecoder::shortName ( const std::string &  src)
static