Last change
on this file since 976 was 964, checked in by s10k, 11 years ago |
XmlTools
More speedup, about 3 times faster now than the current AEI build
|
File size:
1.2 KB
|
Rev | Line | |
---|
[906] | 1 | #ifndef XMLPATCH_H
|
---|
| 2 | #define XMLPATCH_H
|
---|
| 3 |
|
---|
| 4 | #include "xmltools.h"
|
---|
[964] | 5 | #include "xmlcustomcode.h"
|
---|
[926] | 6 | #include "optionsparser.h"
|
---|
[906] | 7 |
|
---|
| 8 | class XmlPatch
|
---|
| 9 | {
|
---|
| 10 | public:
|
---|
[926] | 11 | XmlPatch(QString patchFilesWildcard, QString forceTargetFilesWildcard, bool noBackups, bool noVerbose);
|
---|
[906] | 12 | void readAndProcessPatchFile();
|
---|
| 13 | private:
|
---|
[964] | 14 | QVector<QString> patchFilesToProcess;
|
---|
[906] | 15 | QString forceTargetFilesWildcard;
|
---|
| 16 | pugi::xml_document document;
|
---|
| 17 | pugi::xml_node rootNode;
|
---|
[923] | 18 | bool backupsEnabled, verboseEnabled;
|
---|
[964] | 19 | XmlCustomCode customCodeOperation;
|
---|
[906] | 20 | QString getPatchParameterValue(const QString& line, QString parameter);
|
---|
[920] | 21 | void insertNodesOperation(const QString &xmlString, XmlFilter &filters, const QString &xPathExpression, const QString &filesWildcard="");
|
---|
| 22 | void removeNodesOperation(XmlFilter &filters, const QString &xPathExpression, const QString &filesWildcard="");
|
---|
[906] | 23 | void executeCommandOperation(const QString &commandString);
|
---|
| 24 | void executeCustomCommandOperation(const QString &jsString, const QString &filesWildcard="");
|
---|
| 25 | void checkPatchVersion(const QString &file, QTextStream &fileStream);
|
---|
| 26 | void checkAndProcessValidCommands(QTextStream &fileStream);
|
---|
| 27 | };
|
---|
| 28 |
|
---|
| 29 | #endif // XMLPATCH_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.