source: s10k/XmlTools/utilxmltools.h@ 1077

Last change on this file since 1077 was 1073, checked in by s10k, 7 years ago

added XML Tools latest version (2.0d) and s10k's common libs

File size: 1.6 KB
RevLine 
[1073]1#ifndef UTILXMLTOOLS_H
2#define UTILXMLTOOLS_H
3
4// Utilities functions specific used for Xml Tools (not general functions)
5
6#include "util.h"
7#include "xmlfilter.h"
8#include <pugixml/pugixml.hpp>
9
10#include <iostream>
11
12namespace UtilXmlTools{
13
14QVector<QString> getAllXmlFilesByWildcard(const QString &wildcard);
15QVector<QString> getAllPatchFilesByWildcard(const QString &wildcard);
16void backupFile(const QString &file, bool verboseEnabled);
17void getAllNamedElements(pugi::xml_node &node, QList<pugi::xml_node> &result, XmlFilter &filters);
18void getAllXpathElements(const QString &xPathExpression, pugi::xml_document &doc, QList<pugi::xml_node> &result);
19void displaySuccessMessage(const int numberOperations, const QString &operation);
20void displayErrorMessage(const QString& operation, const QString &message, bool exitProgram=true);
21void loadXmlFile(const QString &file, pugi::xml_document &document, pugi::xml_node &rootNode, bool backupsEnabled, bool verboseEnabled, const QString &operationForErrorMessage);
22void saveXmlFile(const QString &file, pugi::xml_document &document, const QString &operationForErrorMessage);
23pugi::xml_node getFirstNamedElement(pugi::xml_node &node, XmlFilter &filters);
24pugi::xml_node getFirstXpathElement(const QString &xPathExpression, pugi::xml_document &doc);
25QStringList qStringListFromSpacedString(const QString &mySpacedString);
26QStringList QStringToArgsArray(const QString &args);
27QStringList getAllFilesByWildcard(const QString &wildcard);
28QList<int> qListIntFromSpacedString(const QString &mySpacedString);
29QList<double> qListDoubleFromSpacedString(const QString &mySpacedString);
30
31}
32
33#endif // UTILXMLTOOLS_H
Note: See TracBrowser for help on using the repository browser.