23 #ifndef __LAUNCHER_XML_PERSISTENCE_HXX__
24 #define __LAUNCHER_XML_PERSISTENCE_HXX__
46 static std::list<Job *> loadJobs(
const char* jobs_file);
49 static void saveJobs(
const char* jobs_file,
const std::list<const Job *> & jobs_list);
55 static void addJobToXmlDocument(
xmlNodePtr root_node,
const Job & job);
57 static void parseUserNode(
Job * new_job,
xmlNodePtr user_node);
59 static void parseResourceNode(
Job * new_job,
xmlNodePtr res_node);
65 static std::string getAttrValue(
xmlNodePtr node,
const std::string & attrName);
66 static inline std::string xmlStrToString(
const xmlChar * xmlStr);
67 static std::string getNodeContent(
xmlNodePtr node);
68 template<
typename T>
static T getNumericalNodeContent(
xmlNodePtr node);
70 const std::string & content);
72 const std::string & name,
74 static void addAttr(
xmlNodePtr node,
const std::string & name,
const std::string & value);