20 #ifndef RTC_TYPENAME_H
21 #define RTC_TYPENAME_H
34 template <
class T,
typename T::_ptr_type (*)(
void)>
43 template <
class T,
class U =
void>
46 static const bool value =
false;
58 static const bool value =
true;
93 template <
bool cond,
class T>
97 class typecode<true, T>
100 static const char* id()
103 typename T::_ptr_type tmp_var;
106 return any_var.type()->id();
108 static const char* name()
111 typename T::_ptr_type tmp_var;
114 return any_var.type()->name();
119 class typecode<false, T>
122 static const char* id()
127 return any_var.type()->id();
129 static const char* name()
134 return any_var.type()->name();
179 return typecode<is_corba_object<T>::value, T>::name();
234 return typecode<is_corba_object<T>::value, T>::id();
254 std::cerr <<
"toTypename() is obsolete." << std::endl;
255 std::cerr <<
"Please use CORBA_Util::toTypename() instead." << std::endl;
256 return CORBA_Util::typecode<CORBA_Util::is_corba_object<T>::value, T>::name();
259 #endif // RTC_TYPENAME_H