20 #ifndef DOIL_CORBA_BASICTYPECONVERSION_H 21 #define DOIL_CORBA_BASICTYPECONVERSION_H 23 #include <coil/stringutil.h> 46 inline bool local_to_corba(
const unsigned long int _from, ::CORBA::ULong& _to)
82 #if defined ORB_IS_TAO 83 #elif defined ORB_IS_OMNIORB 84 inline bool local_to_corba(
const std::string& _from, ::CORBA::String_member& _to)
86 _to.out() = ::CORBA::string_dup(_from.c_str());
91 inline bool local_to_corba(
const std::string& _from, _CORBA_String_element::_CORBA_String_element _to)
93 _to.out() = ::CORBA::string_dup(_from.c_str());
96 #elif defined ORB_IS_MICO 97 #elif defined ORB_IS_ORBIT2 101 _to = ::CORBA::string_dup(_from.c_str());
107 _to <<= ::CORBA::Any::from_string(_from.c_str(), _from.size());
245 ::CORBA::Short short_var;
246 if (_from >>= short_var)
251 ::CORBA::UShort ushort_var;
252 if (_from >>= ushort_var)
257 ::CORBA::Long long_var;
258 if (_from >>= long_var)
263 ::CORBA::ULong ulong_var;
264 if (_from >>= ulong_var)
269 ::CORBA::Float float_var;
270 if (_from >>= float_var)
275 ::CORBA::Double double_var;
276 if (_from >>= double_var)
291 catch ( ::CORBA::TypeCode::BadKind& e )
299 #endif // DOIL_CORBA_UTIL_H std::string otos(Printable n)
Convert the given object to std::string.
bool local_to_corba(const short int _from,::CORBA::Short &_to)
bool corba_to_local(const ::CORBA::Short _from, short &_to)