From dbe2e1a0910de40d4771a9ad48669e3b03ec6ed2 Mon Sep 17 00:00:00 2001 From: rahuel Date: Thu, 14 Apr 2005 11:40:25 +0000 Subject: [PATCH 1/1] Debug : management of instances (<--> Graph.cxx) --- src/GraphBase/DataFlowBase_Service.cxx | 2 +- src/GraphBase/DataFlowBase_Service.hxx | 21 +++++++++++---------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/src/GraphBase/DataFlowBase_Service.cxx b/src/GraphBase/DataFlowBase_Service.cxx index 1df079f..85b8f79 100644 --- a/src/GraphBase/DataFlowBase_Service.cxx +++ b/src/GraphBase/DataFlowBase_Service.cxx @@ -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 ) { diff --git a/src/GraphBase/DataFlowBase_Service.hxx b/src/GraphBase/DataFlowBase_Service.hxx index 0c4f57a..84a9240 100644 --- a/src/GraphBase/DataFlowBase_Service.hxx +++ b/src/GraphBase/DataFlowBase_Service.hxx @@ -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 ; } ; } ; + } ; } ; -- 2.39.2