catch( ... ) {
*theValue <<= CORBA::Object::_nil() ;
}
+#if OMNIORB_VERSION >= 4
+ *theValue >>= (CORBA::Any::to_object ) ObjRef ;
+#else
*theValue >>= ObjRef ;
+#endif
cdebug << " --> Value( " << ObjectToString( ObjRef ) << ") (object reference) kind "
<< theValue->type()->kind() ;
}
else { // Default
CORBA::Object_ptr ObjRef ;
*theValue <<= CORBA::Object::_nil() ;
+#if OMNIORB_VERSION >= 4
+ *theValue >>= (CORBA::Any::to_object ) ObjRef ;
+#else
*theValue >>= ObjRef ;
+#endif
cdebug << " --> Value( " << ObjectToString( ObjRef ) << ") (object reference) kind "
<< theValue->type()->kind() ;
}
else { // Default
CORBA::Object_ptr ObjRef ;
*theValue <<= CORBA::Object::_nil() ;
+#if OMNIORB_VERSION >= 4
+ *theValue >>= (CORBA::Any::to_object ) ObjRef ;
+#else
*theValue >>= ObjRef ;
+#endif
cdebug << " --> Value( " << ObjectToString( ObjRef ) << ") (object reference) kind "
<< theValue->type()->kind() ;
}
}
case CORBA::tk_objref: { // Input objref Value
CORBA::Object_ptr obj ;
+#if OMNIORB_VERSION >= 4
+ *aDataValue >>= (CORBA::Any::to_object ) obj;
+#else
*aDataValue >>= obj;
+#endif
cdebug << "Value( " << ObjectToString( obj ) << ") (object reference)";
if ( strcmp( Type , "string" ) &&
strcmp( Type , "boolean" ) && strcmp( Type , "char" ) &&
strcmp( Type , "double" ) ) { // SuperVision Default Value
_theValue = aDataValue ;
*_Value = aDataValue ;
+#if OMNIORB_VERSION >= 4
+ *_theValue >>= (CORBA::Any::to_object ) obj ;
+#else
*_theValue >>= obj;
+#endif
cdebug << " == Value( " << ObjectToString( obj ) << ") (object reference)";
}
else {
CORBA::Any * theValue = new CORBA::Any() ;
if ( !strcmp( Type , "string" ) ) {
*theValue <<= ObjectToString( obj ) ;
+#if OMNIORB_VERSION >= 4
+ *theValue >>= (CORBA::Any::to_object ) obj ;
+#else
*theValue >>= obj ;
+#endif
cdebug << " --> Value( " << ObjectToString( obj ) << ") (string) kind " << theValue->type()->kind() ;
}
else if ( !strcmp( Type , "boolean" ) || !strcmp( Type , "char" ) ||
CORBA::Object_ptr obj ;
char * retstr ;
try {
+#if OMNIORB_VERSION >= 4
+ *theValue >>= (CORBA::Any::to_object ) obj ;
+#else
*theValue >>= obj ;
+#endif
retstr = ObjectToString( obj );
// cdebug << "GraphBase::DataPort::Value() : " << retstr
// << "(object reference) " << endl;
case CORBA::tk_objref:
CORBA::Object_ptr ObjRef ;
try {
+#if OMNIORB_VERSION >= 4
+ *theValue >>= (CORBA::Any::to_object ) ObjRef ;
+#else
*theValue >>= ObjRef ;
+#endif
f << "(object reference) " << ObjectToString( ObjRef ) ;
}
catch(...) {