KItinerary
scriptextractor.cpp
91 std::transform(d->m_filters.begin(), d->m_filters.end(), std::back_inserter(filters), std::mem_fn(&ExtractorFilter::toJson));
172ExtractorResult ScriptExtractor::extract(const ExtractorDocumentNode &node, const ExtractorEngine *engine) const
A node in the extracted document object tree.
Definition extractordocumentnode.h:50
Determines whether an extractor is applicable to a given email.
Definition extractorfilter.h:24
void append(ExtractorResult &&other)
Append another result to this one.
Definition extractorresult.cpp:50
QString scriptFunction() const
The JS function entry point for this extractor, main if empty.
Definition scriptextractor.cpp:126
ExtractorResult extract(const ExtractorDocumentNode &node, const ExtractorEngine *engine) const override
Extract data from node.
Definition scriptextractor.cpp:172
const std::vector< ExtractorFilter > & filters() const
Returns the filters deciding whether this extractor should be applied.
Definition scriptextractor.cpp:141
QString scriptFileName() const
The JS script containing the code of the extractor.
Definition scriptextractor.cpp:116
bool canHandle(const ExtractorDocumentNode &node) const override
Fast check whether this extractor is applicable for node.
Definition scriptextractor.cpp:156
Classes for reservation/travel data models, data extraction and data augmentation.
Definition berelement.h:17
bool exists() const const
QString baseName() const const
iterator insert(QLatin1StringView key, const QJsonValue &value)
QJsonValue value(QLatin1StringView key) const const
QJsonArray toArray() const const
QString toString() const const
QString number(double n, char format, int precision)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:28:48 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:28:48 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.