My Project
common.hpp
1 
20 #ifndef _COMMON_HPP_
21 #define _COMMON_HPP_ 1
22 #include <string>
23 #include <cxxabi.h>
24 #include <cstdlib>
25 #include <cassert>
26 #include <functional>
27 #include <typeinfo>
28 
29 class common
30 {
31 public:
39 static std::string __printClassName( const std::string &&obj_name );
40 
41 static std::string printClassNameFromStr( const std::string &&str );
42 
51 template < class K > static
52  std::string printClassName( K &k )
53 {
54  return( std::move< std::string >( common::__printClassName( typeid( k ).name() ) ) );
55 }
56 
57 
58 };
59 
60 #endif /* END _COMMON_HPP_ */
static std::string printClassName(K &k)
Definition: common.hpp:52
Definition: common.hpp:29
static std::string __printClassName(const std::string &&obj_name)
Definition: common.cpp:6