]> SALOME platform Git repositories - modules/kernel.git/blobdiff - src/Launcher/Launcher_XML_Persistence.hxx
Salome HOME
Compilation under Windows: add missing header
[modules/kernel.git] / src / Launcher / Launcher_XML_Persistence.hxx
index e41d2ff3c38e3d4295c31a45c09c2706cca407f3..817c5be3325997887b05c9c4f36e309478653de8 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2013  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2021  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@ -6,7 +6,7 @@
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 // License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
 //
 // This library is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -48,6 +48,9 @@ namespace Launcher
     //! Save the jobs in the list "jobs_list" to the XML file "jobs_file".
     static void saveJobs(const char* jobs_file, const std::list<const Job *> & jobs_list);
 
+    static Job* createJobFromString(const std::string& jobDump);
+    static std::string dumpJob(const Job& job);
+
   private:
     // This class is static only, not instanciable
     XML_Persistence() {}
@@ -56,7 +59,7 @@ namespace Launcher
     static Job * createJobFromXmlNode(xmlNodePtr job_node);
     static void parseUserNode(Job * new_job, xmlNodePtr user_node);
     static void parseRunNode(Job * new_job, xmlNodePtr run_node);
-    static resourceParams parseResourceNode(xmlNodePtr res_node);
+    static void parseResourceNode(Job * new_job, xmlNodePtr res_node);
 
 
     // Useful wrappers around libxml2 functions