From 1d10033b550089aa8e58eb94937c009679e4f08a Mon Sep 17 00:00:00 2001 From: ribes Date: Wed, 22 Apr 2009 07:22:32 +0000 Subject: [PATCH] Adding AppliPath to cluster members --- .../SALOME_ResourcesCatalog_Handler.cxx | 13 +++++++++++++ .../SALOME_ResourcesCatalog_Parser.hxx | 1 + 2 files changed, 14 insertions(+) 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; }; -- 2.39.2