KItinerary
extractorrepository.cpp
87void ExtractorRepository::extractorsForNode(const ExtractorDocumentNode &node, std::vector<const AbstractExtractor*> &extractors) const
95 // while we only would add each extractor at most once, some of them might already be in the list, so de-duplicate
96 const auto it = std::lower_bound(extractors.begin(), extractors.end(), extractor.get(), [](auto lhs, auto rhs) {
179 auto it = std::lower_bound(m_extractors.begin(), m_extractors.end(), e, [](const auto &lhs, const auto &rhs) {
Abstract base class for data extractors.
Definition abstractextractor.h:20
A node in the extracted document object tree.
Definition extractordocumentnode.h:50
Collection of all known data extractors.
Definition extractorrepository.h:34
void setAdditionalSearchPaths(const QStringList &searchPaths)
Sets additional search paths to look for extractors.
Definition extractorrepository.cpp:192
const std::vector< std::unique_ptr< AbstractExtractor > > & extractors() const
All known extractors.
Definition extractorrepository.cpp:82
const AbstractExtractor * extractorByName(QStringView name) const
Returns the extractor with the given identifier.
Definition extractorrepository.cpp:106
void extractorsForNode(const ExtractorDocumentNode &node, std::vector< const AbstractExtractor * > &extractors) const
Finds matching extractors for the given document node.
Definition extractorrepository.cpp:87
QStringList additionalSearchPaths() const
Returns the list of additional search paths for extractor scripts.
Definition extractorrepository.cpp:187
A single unstructured data extraction rule set.
Definition scriptextractor.h:77
Classes for reservation/travel data models, data extraction and data augmentation.
Definition berelement.h:17
void error(QWidget *parent, const QString &text, const QString &title, const KGuiItem &buttonOk, Options options=Notify)
Files
ReadOnly
QJsonValue at(qsizetype i) const const
void push_back(const QJsonValue &value)
qsizetype size() const const
QJsonDocument fromJson(const QByteArray &json, QJsonParseError *error)
GenericDataLocation
QStringList standardLocations(StandardLocation type)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:00:33 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:00:33 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.