Salome HOME
Debug : management of instances (<--> Graph.cxx)
authorrahuel <rahuel@opencascade.com>
Thu, 14 Apr 2005 11:40:25 +0000 (11:40 +0000)
committerrahuel <rahuel@opencascade.com>
Thu, 14 Apr 2005 11:40:25 +0000 (11:40 +0000)
src/GraphBase/DataFlowBase_Service.cxx
src/GraphBase/DataFlowBase_Service.hxx

index 1df079fe8e684f827b476f7466d70f5ddbaec602..85b8f79ed43813580c74f9689ddf0f6dcd912934 100644 (file)
@@ -57,7 +57,7 @@ void GraphBase::Service::SetService( const SALOME_ModuleCatalog::Service aServic
     _Service.ServiceoutDataStreamParameter[ i ].Parameterdependency = aService.ServiceoutDataStreamParameter[ i ].Parameterdependency ;
   }
 //  cdebug << "GraphBase::Service::SetService : " << _Service << endl ;
-  _Instance = 0 ;
+//  _Instance = 0 ;
 }
 
 ostream & operator<< (ostream & f ,const SALOME_ModuleCatalog::Service & s ) {
index 0c4f57aa89afb626be95112a88ee89f758fdbcd5..84a9240dcc56a6a30715d6fe5ea7ccb8085b42be 100644 (file)
@@ -40,7 +40,7 @@ namespace GraphBase {
     private:
 
       SALOME_ModuleCatalog::Service _Service ;
-      int                           _Instance ;
+//      int                           _Instance ;
 
     public:   
 
@@ -52,8 +52,8 @@ namespace GraphBase {
              } ;
       Service( const char * aServiceName ) {
                _Service.ServiceName = CORBA::string_dup( aServiceName ) ;
-               cdebug << "GraphBase::Service::Service : " << _Service << endl ;
-               _Instance = 0 ; } ;
+               cdebug << "GraphBase::Service::Service : " << _Service << endl ; } ;
+//               _Instance = 0 ; } ;
       virtual ~Service() {
               cdebug << "GraphBase::Service::~Service" << endl ; } ;
 
@@ -75,13 +75,14 @@ namespace GraphBase {
       const SALOME_ModuleCatalog::ListOfServicesDataStreamParameter ServiceOutStreamParameter() const {
             return _Service.ServiceoutDataStreamParameter ; } ;
 
-      const int Instances() const { return _Instance ; } ;
-      int NewInstance() { _Instance += 1 ;
-                          return _Instance ; } ;
-      void Instance( int Inst = 1 ) { if ( Inst == 1 )
-                                        _Instance += 1 ;
-                                      else
-                                        _Instance = Inst ; } ; } ;
+//      const int Instances() const { return _Instance ; } ;
+//      int NewInstance() { _Instance += 1 ;
+//                          return _Instance ; } ;
+//      void Instance( int Inst = 1 ) { if ( Inst == 1 )
+//                                        _Instance += 1 ;
+//                                      else
+//                                        _Instance = Inst ; } ; } ;
+    } ;
 
 } ;