]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Adding AppliPath to cluster members
authorribes <ribes>
Wed, 22 Apr 2009 07:22:32 +0000 (07:22 +0000)
committerribes <ribes>
Wed, 22 Apr 2009 07:22:32 +0000 (07:22 +0000)
src/ResourcesManager/SALOME_ResourcesCatalog_Handler.cxx
src/ResourcesManager/SALOME_ResourcesCatalog_Parser.hxx

index 76ec27e666bc7223e1690e015ccb262a3352aa94..6e5e63a0aa9b7019640b3b1400ab8635eb2f9cbf 100755 (executable)
@@ -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
index fe187cb5ce2fd7c8eff8a0f3d50ab38287683ddc..6a2c2aa36d1660745dae1d01c1a18e37a7868d49 100755 (executable)
@@ -77,6 +77,7 @@ struct RESOURCESMANAGER_EXPORT ParserResourcesClusterMembersType
   std::string HostName;
   AccessProtocolType Protocol;
   std::string UserName;
+  std::string AppliPath;
   ResourceDataToSort DataForSort;
 };