From: ribes Date: Wed, 22 Apr 2009 07:22:32 +0000 (+0000) Subject: Adding AppliPath to cluster members X-Git-Tag: new_launcher_alpha_091119~22 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1d10033b550089aa8e58eb94937c009679e4f08a;p=modules%2Fkernel.git Adding AppliPath to cluster members --- diff --git a/src/ResourcesManager/SALOME_ResourcesCatalog_Handler.cxx b/src/ResourcesManager/SALOME_ResourcesCatalog_Handler.cxx index 76ec27e66..6e5e63a0a 100755 --- a/src/ResourcesManager/SALOME_ResourcesCatalog_Handler.cxx +++ b/src/ResourcesManager/SALOME_ResourcesCatalog_Handler.cxx @@ -341,6 +341,19 @@ SALOME_ResourcesCatalog_Handler::ProcessMember(xmlNodePtr member_descr, ParserRe std::cerr << "SALOME_ResourcesCatalog_Handler::ProcessMember : Warning this machine will not be added" << std::endl; return false; } + + if (xmlHasProp(member_descr, (const xmlChar*)test_appli_path)) + { + xmlChar* appli_path = xmlGetProp(member_descr, (const xmlChar*)test_appli_path); + resource.AppliPath = (const char*)appli_path; + xmlFree(appli_path); + } + else + { + std::cerr << "SALOME_ResourcesCatalog_Handler::ProcessMember : Warning found a machine without a AppliPath" << std::endl; + std::cerr << "SALOME_ResourcesCatalog_Handler::ProcessMember : Warning this machine will not be added" << std::endl; + return false; + } } bool diff --git a/src/ResourcesManager/SALOME_ResourcesCatalog_Parser.hxx b/src/ResourcesManager/SALOME_ResourcesCatalog_Parser.hxx index fe187cb5c..6a2c2aa36 100755 --- a/src/ResourcesManager/SALOME_ResourcesCatalog_Parser.hxx +++ b/src/ResourcesManager/SALOME_ResourcesCatalog_Parser.hxx @@ -77,6 +77,7 @@ struct RESOURCESMANAGER_EXPORT ParserResourcesClusterMembersType std::string HostName; AccessProtocolType Protocol; std::string UserName; + std::string AppliPath; ResourceDataToSort DataForSort; };