Salome HOME
Remove of obsolete code
authorrahuel <rahuel@opencascade.com>
Tue, 30 Aug 2005 06:55:24 +0000 (06:55 +0000)
committerrahuel <rahuel@opencascade.com>
Tue, 30 Aug 2005 06:55:24 +0000 (06:55 +0000)
Change in Valid behavior : in the editor we create only Services of
the graph and of InLineNodes

src/GraphEditor/DataFlowEditor_DataFlow.hxx
src/GraphEditor/DataFlowEditor_DataFlow.lxx

index b2931a759f88db7eed50ecc927c7b038af708e3b..bbe23124db33fb730ca9d17da7afbfe8939da2c6 100644 (file)
@@ -212,7 +212,8 @@ namespace GraphEditor {
       const CORBA::Any GetOutData( const char * FromNodeName ,
                                    const char * FromParameterName ) ;
 
-      bool IsValid(bool kLoopSwitch = true ) ;
+//      bool IsValid(bool kLoopSwitch = true ) ;
+      bool IsValid() ;
       bool IsExecutable() ;
 
       void Executing() ; // asv : removed a bool parameter, use Editing() to set _Executing = false
index e048755c5e0921662043f421db53a66067494586..d73dd005f687da36736d14dd93a7487f7cce6cdc 100644 (file)
@@ -33,6 +33,8 @@ inline void GraphEditor::DataFlow::ReadOnly() {
   _ReadOnly = true ;
 }
 
+//JR 07.07.2005 : old code from the first prototype
+#if 0
 inline char * GraphEditor::DataFlow::DataFlowInfo() {
   ostringstream s;
   IsValid() ;
@@ -56,6 +58,7 @@ inline char * GraphEditor::DataFlow::NodeInfo( const char * aNodeName ) {
     s << aNodeName << " not found" << ends ;
   return CORBA::string_dup( s.str().c_str() );
 }
+#endif
 
 inline bool GraphEditor::DataFlow::LoadDataFlow( const GraphBase::SGraph * aDataFlow ) {
   if ( _ReadOnly )
@@ -424,8 +427,10 @@ inline const CORBA::Any GraphEditor::DataFlow::GetOutData(
 
 //JR Optional parameter kLoopSwitch (default = true) :
 //In some cases we do not need to check the validity of loops and switchs
-inline bool GraphEditor::DataFlow::IsValid(bool kLoopSwitch ) {
-  return GraphEditor::OutNode::IsValid( kLoopSwitch ) ;
+//inline bool GraphEditor::DataFlow::IsValid(bool kLoopSwitch ) {
+inline bool GraphEditor::DataFlow::IsValid() {
+//  return GraphEditor::OutNode::IsValid( kLoopSwitch ) ;
+  return GraphEditor::OutNode::IsValid() ;
 }
 
 inline bool GraphEditor::DataFlow::IsExecutable() {
@@ -470,35 +475,40 @@ inline bool GraphEditor::DataFlow::IsReadOnly() {
 }
 
 inline long GraphEditor::DataFlow::LevelMax() {
-  if ( !IsValid() ) {
+//  if ( !IsValid( false ) ) {
+  if ( !IsExecutable() ) {
     return 0 ;
   }
   return Graph()->LevelMax() ;
 }
 
 inline SUPERV::ListOfStrings * GraphEditor::DataFlow::LevelNodes(long aLevel ) {
-  if ( !IsValid( false ) ) {
+//  if ( !IsValid( false ) ) {
+  if ( !IsExecutable() ) {
     return ((SUPERV::ListOfStrings * ) NULL ) ;
   }
   return Graph()->LevelNodes( aLevel ) ;
 }
 
 inline long GraphEditor::DataFlow::ThreadsMax() {
-  if ( !IsValid() ) {
+//  if ( !IsValid() ) {
+  if ( !IsExecutable() ) {
     return 0 ;
   }
   return Graph()->ThreadsMax() ;
 }
 
 inline long GraphEditor::DataFlow::SubGraphsNumber() {
-  if ( !IsValid() ) {
+//  if ( !IsValid() ) {
+  if ( !IsExecutable() ) {
     return 0 ;
   }
   return Graph()->SubGraphsNumber() ;
 }
 
 inline long GraphEditor::DataFlow::SubStreamGraphsNumber() {
-  if ( !IsValid() ) {
+//  if ( !IsValid() ) {
+  if ( !IsExecutable() ) {
     return 0 ;
   }
   return StreamGraph()->SubStreamGraphsNumber() ;