From 1e7dffb1ff3c9d0f42ec17a90b3bd0c1aec52579 Mon Sep 17 00:00:00 2001 From: ribes Date: Fri, 18 Jul 2008 12:58:04 +0000 Subject: [PATCH] - Use _DEBUG and not _MYDEBUG --- .../SALOME_ResourcesCatalog_Handler.cxx | 45 +++++++------------ 1 file changed, 16 insertions(+), 29 deletions(-) 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 + } -- 2.39.2