KItinerary::ExtractorResult
#include <extractorresult.h>
Public Member Functions | |
ExtractorResult (const QJsonArray &result) | |
ExtractorResult (const QList< QVariant > &result) | |
void | append (ExtractorResult &&other) |
bool | isEmpty () const |
QJsonArray | jsonLdResult () const |
QList< QVariant > | result () const |
int | size () const |
Detailed Description
Generic extraction result.
This can represent results both in JSON-LD serialized form and in QVariant decoded form.
Definition at line 20 of file extractorresult.h.
Constructor & Destructor Documentation
◆ ExtractorResult() [1/2]
ExtractorResult::ExtractorResult | ( | const QJsonArray & | result | ) |
Definition at line 15 of file extractorresult.cpp.
◆ ExtractorResult() [2/2]
Definition at line 20 of file extractorresult.cpp.
Member Function Documentation
◆ append()
void ExtractorResult::append | ( | ExtractorResult && | other | ) |
Append another result to this one.
Definition at line 50 of file extractorresult.cpp.
◆ isEmpty()
bool ExtractorResult::isEmpty | ( | ) | const |
Checks if there is any relevant result set in here.
Definition at line 25 of file extractorresult.cpp.
◆ jsonLdResult()
QJsonArray ExtractorResult::jsonLdResult | ( | ) | const |
JSON-LD data extracted from this document or page.
Definition at line 35 of file extractorresult.cpp.
◆ result()
Result in decoded form.
Definition at line 43 of file extractorresult.cpp.
◆ size()
int ExtractorResult::size | ( | ) | const |
Amount of contained result elements.
Definition at line 30 of file extractorresult.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:59 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.