catch( ... ) {
*theValue <<= CORBA::Object::_nil() ;
}
+#if OMNIORB_VERSION >= 4
+ *theValue >>= (CORBA::Any::to_object ) ObjRef ;
+#else
*theValue >>= ObjRef ;
+#endif
#if ValueTrace
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
#if ValueTrace
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
#if ValueTrace
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
#if ValueTrace
cdebug << "Value( " << ObjectToString( obj ) << ") (object reference)";
#endif
strcmp( Type , "double" ) ) { // SuperVision Default Value
_theValue = aDataValue ;
*_Value = aDataValue ;
+#if OMNIORB_VERSION >= 4
+ *_theValue >>= (CORBA::Any::to_object ) obj ;
+#else
*_theValue >>= obj;
+#endif
#if ValueTrace
cdebug << " == Value( " << ObjectToString( obj ) << ") (object reference)";
#endif
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
#if ValueTrace
cdebug << " --> Value( " << ObjectToString( obj ) << ") (string) kind " << theValue->type()->kind() ;
#endif
char * retstr ;
try {
//JR 30.03.2005 *theValue >>= obj ;
+#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(...) {