Ignore:
Timestamp:
Feb 24, 2014, 4:36:44 PM (11 years ago)
Author:
s10k
Message:

XmlTools
More speedup, about 3 times faster now than the current AEI build

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XmlTools2/trunk/xmlpatch.h

    r958 r964  
    33
    44#include "xmltools.h"
     5#include "xmlcustomcode.h"
    56#include "optionsparser.h"
    6 #include <omp.h> // OpenMP support
    7 #include <ctime> // script execution time calculation
    8 
    9 #define SLOW_SCRIPT_TIME 0.1 // if a user script takes more than 0.1 seconds to execute give a warning.
    107
    118class XmlPatch
     
    1512    void readAndProcessPatchFile();
    1613private:
    17     QStringList patchFilesToProcess;
     14    QVector<QString> patchFilesToProcess;
    1815    QString forceTargetFilesWildcard;
    1916    pugi::xml_document document;
    2017    pugi::xml_node rootNode;
    2118    bool backupsEnabled, verboseEnabled;
     19    XmlCustomCode customCodeOperation;
    2220    QString getPatchParameterValue(const QString& line, QString parameter);
    2321    void insertNodesOperation(const QString &xmlString, XmlFilter &filters, const QString &xPathExpression, const QString &filesWildcard="");
     
    2725    void checkPatchVersion(const QString &file, QTextStream &fileStream);
    2826    void checkAndProcessValidCommands(QTextStream &fileStream);
    29     void displayJsException(QScriptEngine &engine, QScriptValue &engineResult);
    3027};
    3128
Note: See TracChangeset for help on using the changeset viewer.