3#include <Process/ProcessMetadata.hpp>
6#include <QRegularExpression>
22inline FoundKeys initDescriptor(
const QString& data)
24 static const QRegularExpression nameExpr{R
"_(declare\s*name\s*"(.*)";)_"};
25 static const QRegularExpression authorExpr{R
"_(declare\s*author?\s*"(.*)";)_"};
26 static const QRegularExpression descExpr{R
"_(declare\s*description\s*"(.*)";)_"};
27 static const QRegularExpression licenseExpr{R
"_(declare\s*licen[sc]e\s*"(.*)";)_"};
28 static const QRegularExpression copyrightExpr{R
"_(declare\s*copyright\s*"(.*)";)_"};
29 static const QRegularExpression referenceExpr{R
"_(declare\s*reference\s*"(.*)";)_"};
30 static const QRegularExpression versionExpr{R
"_(declare\s*version\s*"(.*)";)_"};
38 f.open(QIODevice::ReadOnly);
43 d.prettyName =
matches.captured(1);
49 d.description =
matches.captured(1);
52 d.license =
matches.captured(1);
54 d.copyright =
matches.captured(1);
56 d.version =
matches.captured(1);
58 d.reference =
matches.captured(1);
Definition Descriptor.hpp:11
Definition ObjectMatches.hpp:6