21 lines
456 B
C++
21 lines
456 B
C++
#ifndef REGEXEXTRACT_H
|
|
#define REGEXEXTRACT_H
|
|
#include <QString>
|
|
#include <QFile>
|
|
#include <QTextStream>
|
|
#include <QStringList>
|
|
|
|
class RegexExtract
|
|
{
|
|
public:
|
|
RegexExtract();
|
|
bool extract(const QString& xmlPath);
|
|
void exportBlocks(const QString& path);
|
|
protected:
|
|
bool startsWith(const QString& line,const QString& eleName);
|
|
bool endsWith(const QString& line,const QString& eleName);
|
|
QStringList blocks;
|
|
};
|
|
|
|
#endif // REGEXEXTRACT_H
|