]> SALOME platform Git repositories - modules/superv.git/blobdiff - src/Supervision/SNode_Impl.cxx
Salome HOME
This commit was generated by cvs2git to create branch 'Tag-First-
[modules/superv.git] / src / Supervision / SNode_Impl.cxx
diff --git a/src/Supervision/SNode_Impl.cxx b/src/Supervision/SNode_Impl.cxx
deleted file mode 100644 (file)
index 1d6b83e..0000000
+++ /dev/null
@@ -1,105 +0,0 @@
-//  SUPERV Supervision : contains the implementation of interfaces of SuperVision described in SUPERV.idl
-//
-//  Copyright (C) 2003  CEA/DEN, EDF R&D
-//
-//
-//
-//  File   : SNode_Impl.cxx
-//  Author : Jean Rahuel
-//  Module : SUPERV
-//  $Header: 
-
-using namespace std;
-#include <stdio.h>
-#include <fstream>
-//#include <sstream>
-#include <string>
-
-//#include "utilities.h"
-
-#include "SNode_Impl.hxx"
-
-SNode_Impl::SNode_Impl() {
-}
-
-SNode_Impl::SNode_Impl( CORBA::ORB_ptr orb ,
-                       PortableServer::POA_ptr poa ,
-                       PortableServer::ObjectId * contId , 
-                       const char *instanceName ,
-                        const char *interfaceName ,
-                        GraphEditor::DataFlow * aDataFlowEditor ,
-                        const char * FuncName , 
-                        const SUPERV::ListOfStrings & PythonFunction ,
-                        const SUPERV::KindOfNode NodeKindOfNode ) :
-//  Engines_Component_i(orb, poa, contId, instanceName, interfaceName, false, false) {
-  GNode_Impl( orb , poa , contId , instanceName , interfaceName , aDataFlowEditor , FuncName , PythonFunction , NodeKindOfNode ) {
-//  MESSAGE( NodeName << " " );
-  beginService( "SNode_Impl::SNode_Impl" );
-  _thisObj = this ;
-  _id = _poa->activate_object(_thisObj);
-  _Orb = CORBA::ORB::_duplicate(orb);
-  _Poa = poa ;
-  _ContId = contId ;
-//  DataFlowNode( DataFlowEditor()->AddNode( NodeService , NodeComponentName ,
-//                                           NodeInterfaceName , NodeName ,
-//                                           NodeKindOfNode ) ) ;
-//  DataFlowNode( DataFlowEditor()->AddNode( SALOME_ModuleCatalog::Service() ,
-//                                           "" , "" , "" ,
-//                                           NodeKindOfNode ) ) ;
-  endService( "SNode_Impl::SNode_Impl" );  
-}
-
-SNode_Impl::SNode_Impl( CORBA::ORB_ptr orb ,
-                     PortableServer::POA_ptr poa ,
-                     PortableServer::ObjectId * contId , 
-                     const char *instanceName ,
-                      const char *interfaceName ,
-                      GraphEditor::DataFlow * aDataFlowEditor ,
-                      GraphEditor::InNode * aDataFlowNode ) :
-//  Engines_Component_i(orb, poa, contId, instanceName, interfaceName, false, false) {
-  GNode_Impl( orb , poa , contId , instanceName , interfaceName , aDataFlowEditor , aDataFlowNode ) {
-  MESSAGE( DataFlowNode()->Name() << " " );
-  beginService( "SNode_Impl::SNode_Impl" );
-  _thisObj = this ;
-  _id = _poa->activate_object(_thisObj);
-  _Orb = CORBA::ORB::_duplicate(orb);
-  _Poa = poa ;
-  _ContId = contId ;
-  endService( "SNode_Impl::SNode_Impl" );  
-}
-
-SNode_Impl::~SNode_Impl() {
-  beginService( "SNode_Impl::~SNode_Impl" );
-  endService( "SNode_Impl::~SNode_Impl" );
-}
-
-void SNode_Impl::destroy() {
-  beginService( "SNode_Impl::Destroy" );
-  if ( DataFlowEditor()->IsEditing() ) {
-    SUPERV::GNode_ptr aCoupled = SUPERV::GNode::_narrow( Coupled() ) ;
-    if ( Delete() ) {
-      _poa->deactivate_object(*_id) ;
-      CORBA::release(_poa) ;
-      delete(_id) ;
-      _thisObj->_remove_ref();
-    }
-    if ( !CORBA::is_nil( aCoupled ) ) {
-      aCoupled->SetCoupled( "" ) ;
-      aCoupled->destroy() ;
-    }
-  }
-//  endService( "SNode_Impl::Destroy" );
-}
-
-bool SNode_Impl::Delete() {
-//  beginService( "SNode_Impl::Delete" );
-  bool RetVal = false ;
-  if ( DataFlowEditor()->IsEditing() ) {
-    RetVal = DataFlowEditor()->RemoveNode( Name() ) ;
-    if ( RetVal )
-      RetVal = DataFlowEditor()->IsValid() ;
-  }
-//  endService( "SNode_Impl::Delete" );
-  return RetVal ;
-}
-