KItinerary
scriptextractor.cpp
98 std::transform(d->m_filters.begin(), d->m_filters.end(), std::back_inserter(filters), std::mem_fn(&ExtractorFilter::toJson));
175ExtractorResult 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:129
ExtractorResult extract(const ExtractorDocumentNode &node, const ExtractorEngine *engine) const override
Extract data from node.
Definition scriptextractor.cpp:175
const std::vector< ExtractorFilter > & filters() const
Returns the filters deciding whether this extractor should be applied.
Definition scriptextractor.cpp:144
QString scriptFileName() const
The JS script containing the code of the extractor.
Definition scriptextractor.cpp:119
bool canHandle(const ExtractorDocumentNode &node) const override
Fast check whether this extractor is applicable for node.
Definition scriptextractor.cpp:159
Classes for reservation/travel data models, data extraction and data augmentation.
Definition berelement.h:17
bool exists() 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 Sat Dec 21 2024 16:56:36 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:56:36 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.