OpenRTM-aist 2.0.2
Loading...
Searching...
No Matches
CORBA_Util Namespace Reference

Classes

struct  has_nil
 has nil traits class template More...
 
struct  has_nil_helper
 has nil helper More...
 
struct  has_nil_impl
 has nil impl: void case More...
 
struct  has_nil_impl< T, typename has_nil_helper< T, &T::_nil >::type >
 has nil impl: valid case More...
 
struct  is_corba_object
 is corba object traits class More...
 
class  typecode
 typecode class template More...
 
class  typecode< false, T >
 
class  typecode< true, T >
 

Functions

template<class T >
void copyData (T &data1, const T &data2)
 
template<class T >
const char * toTypename ()
 Getting CORBA defined type as characters.
 
template<class T >
const char * toTypenameOfStruct ()
 
template<class T >
const char * toTypenameOfObject ()
 
template<class T >
const char * toRepositoryId ()
 Getting CORBA defined type as characters.
 
template<class T >
const char * toRepositoryIdOfStruct ()
 
template<class T >
const char * toRepositoryIdOfObject ()
 

Function Documentation

◆ copyData()

template<class T >
void CORBA_Util::copyData ( T & data1,
const T & data2 )

◆ toRepositoryId()

template<class T >
const char * CORBA_Util::toRepositoryId ( )

Getting CORBA defined type as characters.

This function returns the type name if class or struct type that is defined CORBA IDL. The template parameter can be a type which has type code.

std::cout << toRepositoryId<RTC::TimedFloat>() << std::endl;
std::cout << toRepositoryId<RTC::RTObject>() << std::endl;

gives the following results.

IDL:RTC/TimedFloat:1.0
IDL:omg.org/RTC/RTObject:1.0

Referenced by RTC::addDataTypeToMarshalingType(), and RTC::getSerializerList().

◆ toRepositoryIdOfObject()

template<class T >
const char * CORBA_Util::toRepositoryIdOfObject ( )

◆ toRepositoryIdOfStruct()

template<class T >
const char * CORBA_Util::toRepositoryIdOfStruct ( )

◆ toTypename()

template<class T >
const char * CORBA_Util::toTypename ( )

Getting CORBA defined type as characters.

This function returns the type name if class or struct type that is defined CORBA IDL. The template parameter can be a type which has type code.

std::cout << toTypename<RTC::TimedFloat>() << std::endl;
std::cout << toTypename<RTC::RTObject>() << std::endl;

gives the following results.

TimedFloat
RTObject

◆ toTypenameOfObject()

template<class T >
const char * CORBA_Util::toTypenameOfObject ( )

◆ toTypenameOfStruct()

template<class T >
const char * CORBA_Util::toTypenameOfStruct ( )