Salome HOME
Fix linkage problem: add missing -l options
[modules/superv.git] / src / Supervision / GNode_Impl.hxx
index ca6cff4da0d9909cb5fb1fcc4ac8f6eff9ea2324..8f4a1b0050f43ac128721e248cb9479f40062053 100644 (file)
@@ -1,14 +1,29 @@
-//  SUPERV Supervision : contains the implementation of interfaces of SuperVision described in SUPERV.idl
+//  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
+//
+//  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+//
+//  This library is free software; you can redistribute it and/or
+//  modify it under the terms of the GNU Lesser General Public
+//  License as published by the Free Software Foundation; either
+//  version 2.1 of the License.
 //
-//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//  This library is distributed in the hope that it will be useful,
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+//  Lesser General Public License for more details.
 //
+//  You should have received a copy of the GNU Lesser General Public
+//  License along with this library; if not, write to the Free Software
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 //
+//  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
+//  SUPERV Supervision : contains the implementation of interfaces of SuperVision described in SUPERV.idl
 //  File   : GNode_Impl.hxx
 //  Author : Jean Rahuel
 //  Module : SUPERV
-//  $Header: 
-
+//
 #ifndef _GNODE_IMPL_HXX_
 #define _GNODE_IMPL_HXX_
 
@@ -36,6 +51,13 @@ class GNode_Impl : public INode_Impl ,
 
   public:
     GNode_Impl();
+    GNode_Impl( CORBA::ORB_ptr orb ,
+               PortableServer::POA_ptr poa ,
+               PortableServer::ObjectId * contId , 
+               const char *instanceName ,
+                const char *interfaceName ,
+                const char *aDataFlowName ,
+                const SUPERV::KindOfNode aKindOfNode ) ;
     GNode_Impl( CORBA::ORB_ptr orb ,
                PortableServer::POA_ptr poa ,
                PortableServer::ObjectId * contId , 
@@ -65,37 +87,8 @@ class GNode_Impl : public INode_Impl ,
     virtual void destroy() ;
     virtual bool Delete() ;
 
-    virtual bool SetCoupled( const char * anInLineNode ) {
-            GraphBase::InLineNode * CoupledINode = (GraphBase::InLineNode * ) DataFlowEditor()->GetGraphNode( anInLineNode ) ;
-//            cout << Name() << ".SetCoupled " << anInLineNode << endl ;
-            if ( CoupledINode && ( IsGOTO() &&
-                   ( CoupledINode->IsInLineNode() || CoupledINode->IsLoopNode() ||
-                     CoupledINode->IsSwitchNode() ) ) ||
-                 ( !IsGOTO() && ( IsLoop() || IsSwitch() ||
-                                  IsEndLoop() || IsEndSwitch() ) ) ) {
-              DataFlowNode()->CoupledNode( CoupledINode ) ;
-              if ( IsSwitch() ) {
-                DataFlowEditor()->AddLink( Name() , "Default" ,
-                                           CoupledINode->Name() , "Default" ) ;
-             }
-              else if ( IsLoop() || IsEndLoop() ) {
-                DataFlowEditor()->AddLink( Name() , "DoLoop" ,
-                                           CoupledINode->Name() , "DoLoop" ) ;
-             }
-              else if ( IsGOTO() ) {
-                DataFlowEditor()->AddLink( Name() , "OutGate" ,
-                                           CoupledINode->Name() , "InGate" ) ;
-             }
-//              cout << "SetCoupled " << CoupledINode->Name() << endl ;
-              return  true ;
-           }
-//            cout << Name() << ".SetCoupled ERROR " << anInLineNode << " " << CoupledINode
-//                 << " of " << Kind() ;
-//            if ( CoupledINode ) {
-//              cout << " kinfOkCoupled " << CoupledINode->Kind() ;
-//         }
-//            cout << endl ;
-            return false ; } ;
+    virtual bool SetCoupled( const char * anInLineNode );
+
     virtual SUPERV::INode_ptr Coupled() ;
 
     virtual GraphBase::GOTONode * BaseNode() {