1 #ifndef CPPUNIT_TYPEINFOHELPER_H
2 #define CPPUNIT_TYPEINFOHELPER_H
4 #include <cppunit/Portability.h>
14 /**! \brief Helper to use type_info.
16 class CPPUNIT_API TypeInfoHelper
19 /*! \brief Get the class name of the specified type_info.
20 * \param info Info which the class name is extracted from.
21 * \return The string returned by type_info::name() without
22 * the "class" prefix. If the name is not prefixed
23 * by "class", it is returned as this.
25 static std::string getClassName( const std::type_info &info );
31 #endif // CPPUNIT_HAVE_RTTI
33 #endif // CPPUNIT_TYPEINFOHELPER_H