From: ribes Date: Fri, 18 Jul 2008 08:36:28 +0000 (+0000) Subject: - Replace MYDEBUG by DEBUG X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f95fc0d7b717eb25b5ffc7ddd9dc8b5233545b50;p=modules%2Fkernel.git - Replace MYDEBUG by DEBUG --- diff --git a/src/ResourcesManager/SALOME_ResourcesCatalog_Handler.cxx b/src/ResourcesManager/SALOME_ResourcesCatalog_Handler.cxx index 7d1c53e2a..b3d54fe40 100755 --- a/src/ResourcesManager/SALOME_ResourcesCatalog_Handler.cxx +++ b/src/ResourcesManager/SALOME_ResourcesCatalog_Handler.cxx @@ -29,16 +29,9 @@ #include "SALOME_ResourcesCatalog_Handler.hxx" #include #include -#include "utilities.h" using namespace std; -#ifdef _DEBUG_ -static int MYDEBUG = 1; -#else -static int MYDEBUG = 0; -#endif - //============================================================================= /*! * Constructor @@ -104,8 +97,6 @@ SALOME_ResourcesCatalog_Handler::GetResourcesAfterParsing() const void SALOME_ResourcesCatalog_Handler::ProcessXmlDocument(xmlDocPtr theDoc) { -// if (MYDEBUG) cout << "Begin parse document" << endl; - // Empty private elements _resources_list.clear(); @@ -307,26 +298,22 @@ void SALOME_ResourcesCatalog_Handler::ProcessXmlDocument(xmlDocPtr theDoc) aCurNode = aCurNode->next; } - // For debug only - if (MYDEBUG) - { - for (map::const_iterator iter = - _resources_list.begin(); - iter != _resources_list.end(); - iter++) - { - SCRUTE((*iter).second.HostName); - SCRUTE((*iter).second.Alias); - SCRUTE((*iter).second.UserName); - SCRUTE((*iter).second.AppliPath); - SCRUTE((*iter).second.OS); - SCRUTE((*iter).second.Protocol); - SCRUTE((*iter).second.Mode); - } - -// cout << "This is the end of document" << endl; -// } - } +#ifdef _DEBUG_ + for (map::const_iterator iter = + _resources_list.begin(); + iter != _resources_list.end(); + iter++) + { + std::cerr << (*iter).second.HostName << std::endl; + std::cerr << (*iter).second.Alias << std::endl; + std::cerr << (*iter).second.UserName << std::endl; + std::cerr << (*iter).second.AppliPath << std::endl; + std::cerr << (*iter).second.OS << std::endl; + std::cerr << (*iter).second.Protocol << std::endl; + std::cerr << (*iter).second.Mode << std::endl; + } +#endif + }