Last change
on this file since 939 was 926, checked in by s10k, 11 years ago |
XmlTools2
Added --aei-patch-files-list for AEI2
|
File size:
1.3 KB
|
Rev | Line | |
---|
[906] | 1 | #ifndef XMLPATCH_H
|
---|
| 2 | #define XMLPATCH_H
|
---|
| 3 |
|
---|
| 4 | #include "xmltools.h"
|
---|
[926] | 5 | #include "optionsparser.h"
|
---|
[906] | 6 |
|
---|
| 7 | class XmlPatch
|
---|
| 8 | {
|
---|
| 9 | public:
|
---|
[926] | 10 | XmlPatch(QString patchFilesWildcard, QString forceTargetFilesWildcard, bool noBackups, bool noVerbose);
|
---|
[906] | 11 | void readAndProcessPatchFile();
|
---|
| 12 | private:
|
---|
| 13 | QStringList patchFilesToProcess;
|
---|
| 14 | QString forceTargetFilesWildcard;
|
---|
| 15 | pugi::xml_document document;
|
---|
| 16 | pugi::xml_node rootNode;
|
---|
[923] | 17 | bool backupsEnabled, verboseEnabled;
|
---|
[906] | 18 | QString getPatchParameterValue(const QString& line, QString parameter);
|
---|
[920] | 19 | void insertNodesOperation(const QString &xmlString, XmlFilter &filters, const QString &xPathExpression, const QString &filesWildcard="");
|
---|
| 20 | void removeNodesOperation(XmlFilter &filters, const QString &xPathExpression, const QString &filesWildcard="");
|
---|
[906] | 21 | void executeCommandOperation(const QString &commandString);
|
---|
| 22 | void executeCustomCommandOperation(const QString &jsString, const QString &filesWildcard="");
|
---|
| 23 | void checkPatchVersion(const QString &file, QTextStream &fileStream);
|
---|
| 24 | void checkAndProcessValidCommands(QTextStream &fileStream);
|
---|
| 25 | #ifdef _USE_OLD_JS_ENGINE
|
---|
| 26 | void displayJsException(QScriptEngine &engine, QScriptValue &engineResult);
|
---|
| 27 | #else
|
---|
| 28 | void checkForJsException(QJSValue &engineResult);
|
---|
| 29 | #endif
|
---|
| 30 | };
|
---|
| 31 |
|
---|
| 32 | #endif // XMLPATCH_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.