Salome HOME
ToObject method for omniORB4 problem with Object References
authorrahuel <rahuel@opencascade.com>
Tue, 30 Aug 2005 07:59:52 +0000 (07:59 +0000)
committerrahuel <rahuel@opencascade.com>
Tue, 30 Aug 2005 07:59:52 +0000 (07:59 +0000)
src/Supervision/SuperV_Impl.cxx
src/Supervision/SuperV_Impl.hxx

index fcf7415cea0ff59290d8db03b5fbfb8b49aa2c42..a6bfe8866de01eadb04f00f77411e07a5559bcc6 100644 (file)
@@ -763,6 +763,14 @@ SUPERV::Value_ptr SuperV_Impl::Value( CORBA::Any * anAny ) {
   return SUPERV::Value::_duplicate( iobject ) ;
 }
 
+CORBA::Object_ptr SuperV_Impl::ToObject( CORBA::Object_ptr anObjectRef ) {
+  beginService( "SuperV_Impl::ToObject" );
+  CORBA::Object_ptr anObject ;
+  anObject = CORBA::Object::_duplicate( anObjectRef ) ;
+  endService( "SuperV_Impl::ToObject" );
+  return anObject ;
+}
+
 SUPERV::Graph_ptr SuperV_Impl::Graph(const char * aGraphName ) {
   beginService( "SuperV_Impl::Graph" );
   bool created = true ;
index 7be243ce3b8bd544b488f368cbb85ccf4fcca98b..9267bb3c521c282a64f49bd90302830bb3d757fe 100644 (file)
@@ -118,6 +118,7 @@ class SuperV_Impl : public POA_SUPERV::SuperG ,
     virtual SUPERV::Value_ptr StringValue( const char * aStrIOR ) ;
     virtual SUPERV::Value_ptr AnyValue( const CORBA::Any & anAny ) ;
     virtual SUPERV::Value_ptr Value( CORBA::Any * anAny ) ;
+    virtual CORBA::Object_ptr ToObject( CORBA::Object_ptr anObjectRef ) ;
 
     virtual SUPERV::Graph_ptr Graph( const char * aDataFlowName ) ;