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

#include <NameDecoder.h>

Public Member Functions

template<class T >
std::string getClassName ()
 
template<class T >
std::string getTemplateName ()
 

Static Public Member Functions

template<class T >
static std::string getShortName ()
 
template<class T >
static std::string getTypeName ()
 Helper method to get the type name. More...
 
template<class T >
static std::string getNamespaceName ()
 Helper method to get the namespace name. More...
 
static std::string shortName (const std::string &longname)
 Helper method to generate a shortified version of the longname given as parameter. More...
 
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

◆ decodeClassName()

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

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

◆ decodeFullName()

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

Helper method to decode the type name.

◆ decodeNamespaceName()

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

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

◆ decodeTemplateName()

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

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

◆ decodeTypeName()

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.

◆ getClassName()

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

◆ getNamespaceName()

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

Helper method to get the namespace name.

◆ getShortName()

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

◆ getTemplateName()

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

◆ getTypeName()

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

Helper method to get the type name.

◆ shortName()

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

Helper method to generate a shortified version of the longname given as parameter.