KItinerary
extractordocumentnode.cpp
52ExtractorDocumentNode::ExtractorDocumentNode(const std::shared_ptr<ExtractorDocumentNodePrivate> &dd)
200 std::transform(d->childNodes.begin(), d->childNodes.end(), std::back_inserter(l), [](const auto &c) { return QVariant::fromValue(c); });
A node in the extracted document object tree.
Definition extractordocumentnode.h:50
Q_INVOKABLE QVariantList findChildNodes(const QJSValue &jsFilter) const
JS API for finding child nodes given an KItinerary::ExtractorFilter.
Definition extractordocumentnode.cpp:224
void setResult(ExtractorResult &&result)
Replace the existing results by result.
Definition extractordocumentnode.cpp:160
void appendChild(ExtractorDocumentNode &child)
Add another child node.
Definition extractordocumentnode.cpp:141
void setContextDateTime(const QDateTime &contextDateTime)
Set the context date/time.
Definition extractordocumentnode.cpp:173
void addResult(ExtractorResult &&result)
Add additional results from an extraction step.
Definition extractordocumentnode.cpp:155
QDateTime contextDateTime
The best known context date/time at this point in the document tree.
Definition extractordocumentnode.h:68
QVariant location
Information about the location of this node in relation to one of its ancestors.
Definition extractordocumentnode.h:76
QString usedExtractor() const
Extractor used for the result of this node, if any.
Definition extractordocumentnode.cpp:236
void setContent(const QVariant &content)
Set decoded content.
Definition extractordocumentnode.cpp:120
void setLocation(const QVariant &location)
Set the location information.
Definition extractordocumentnode.cpp:186
KItinerary::ExtractorDocumentNode parent
The parent node, or a null node if this is the root node.
Definition extractordocumentnode.h:55
Abstract base class of a document type processor.
Definition extractordocumentprocessor.h:24
Classes for reservation/travel data models, data extraction and data augmentation.
Definition berelement.h:17
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:14:41 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:14:41 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.