| 6 |
|
class XmlPatch |
| 7 |
|
{ |
| 8 |
|
public: |
| 9 |
< |
XmlPatch(QString patchFilesWildcard, QString forceTargetFilesWildcard="", bool backupsEnabled=true); |
| 9 |
> |
XmlPatch(QString patchFilesWildcard, QString forceTargetFilesWildcard, bool backupsEnabled, bool noVerbose); |
| 10 |
|
void readAndProcessPatchFile(); |
| 11 |
|
private: |
| 12 |
|
QStringList patchFilesToProcess; |
| 13 |
|
QString forceTargetFilesWildcard; |
| 14 |
|
pugi::xml_document document; |
| 15 |
|
pugi::xml_node rootNode; |
| 16 |
< |
bool backupsEnabled; |
| 16 |
> |
bool backupsEnabled, verboseEnabled; |
| 17 |
|
QString getPatchParameterValue(const QString& line, QString parameter); |
| 18 |
|
void insertNodesOperation(const QString &xmlString, XmlFilter &filters, const QString &xPathExpression, const QString &filesWildcard=""); |
| 19 |
|
void removeNodesOperation(XmlFilter &filters, const QString &xPathExpression, const QString &filesWildcard=""); |