KItinerary
engine/extractorengine.cpp
120void ExtractorEngine::setData(const QByteArray &data, QStringView fileName, QStringView mimeType)
162void 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:162
void setData(const QByteArray &data, QStringView fileName={}, QStringView mimeType={})
Set raw data to extract from.
Definition engine/extractorengine.cpp:120
void setContent(const QVariant &data, QStringView mimeType)
Already decoded data to extract from.
Definition engine/extractorengine.cpp:125
QString usedCustomExtractor() const
Returns the extractor id used to obtain the result.
Definition engine/extractorengine.cpp:167
void clear()
Resets the internal state, call before processing new input data.
Definition engine/extractorengine.cpp:114
void setContextDate(const QDateTime &dt)
Set the date the extracted document has been issued at.
Definition engine/extractorengine.cpp:135
QJsonArray extract()
Perform the actual extraction, and return the JSON-LD data that has been found.
Definition engine/extractorengine.cpp:150
const BarcodeDecoder * barcodeDecoder() const
Barcode decoder for use by KItinerary::ExtractorDocumentProcessor.
Definition engine/extractorengine.cpp:177
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:130
const ExtractorDocumentNodeFactory * documentNodeFactory() const
Factory for creating new document nodes.
Definition engine/extractorengine.cpp:172
void setUseSeparateProcess(bool separateProcess)
Perform extraction of "risky" content such as PDF files in a separate process.
Definition engine/extractorengine.cpp:157
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
ISODate
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 4 2024 12:00:25 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 4 2024 12:00:25 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.