KItinerary
engine/extractorengine.cpp
123void ExtractorEngine::setData(const QByteArray &data, QStringView fileName, QStringView mimeType)
165void ExtractorEngine::setAdditionalExtractors(std::vector<const AbstractExtractor*> &&extractors)
Instantiates KItinerary::ExtractorDocumentNode instances using the type-specific document processor.
Definition extractordocumentnodefactory.h:27
A node in the extracted document object tree.
Definition extractordocumentnode.h:50
void setResult(ExtractorResult &&result)
Replace the existing results by result.
Definition extractordocumentnode.cpp:160
QDateTime contextDateTime
The best known context date/time at this point in the document tree.
Definition extractordocumentnode.h:68
void setAdditionalExtractors(std::vector< const AbstractExtractor * > &&extractors)
Sets additional extractors to run on the given data.
Definition engine/extractorengine.cpp:165
void setData(const QByteArray &data, QStringView fileName={}, QStringView mimeType={})
Set raw data to extract from.
Definition engine/extractorengine.cpp:123
void setContent(const QVariant &data, QStringView mimeType)
Already decoded data to extract from.
Definition engine/extractorengine.cpp:128
QString usedCustomExtractor() const
Returns the extractor id used to obtain the result.
Definition engine/extractorengine.cpp:170
void clear()
Resets the internal state, call before processing new input data.
Definition engine/extractorengine.cpp:117
void setContextDate(const QDateTime &dt)
Set the date the extracted document has been issued at.
Definition engine/extractorengine.cpp:138
QJsonArray extract()
Perform the actual extraction, and return the JSON-LD data that has been found.
Definition engine/extractorengine.cpp:153
const BarcodeDecoder * barcodeDecoder() const
Barcode decoder for use by KItinerary::ExtractorDocumentProcessor.
Definition engine/extractorengine.cpp:180
void setContext(const QVariant &data, QStringView mimeType)
Provide a document part that is only used to determine which extractor to use, but not for extraction...
Definition engine/extractorengine.cpp:133
const ExtractorDocumentNodeFactory * documentNodeFactory() const
Factory for creating new document nodes.
Definition engine/extractorengine.cpp:175
void setUseSeparateProcess(bool separateProcess)
Perform extraction of "risky" content such as PDF files in a separate process.
Definition engine/extractorengine.cpp:160
Collection of all known data extractors.
Definition extractorrepository.h:34
void extractorsForNode(const ExtractorDocumentNode &node, std::vector< const AbstractExtractor * > &extractors) const
Finds matching extractors for the given document node.
Definition extractorrepository.cpp:87
void append(ExtractorResult &&other)
Append another result to this one.
Definition extractorresult.cpp:50
bool isEmpty() const
Checks if there is any relevant result set in here.
Definition extractorresult.cpp:25
Classes for reservation/travel data models, data extraction and data augmentation.
Definition berelement.h:17
bool isValid() const const
QString toString(QStringView format, QCalendar cal) const const
QJsonValue at(qsizetype i) const const
iterator insert(QLatin1StringView key, const QJsonValue &value)
QJsonObject toObject() const const
ISODate
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Apr 27 2024 22:08:32 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Apr 27 2024 22:08:32 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.