Search for usage in LXR

KItinerary::ExtractorResult Class Reference

#include <extractorresult.h>

Public Member Functions

 ExtractorResult (const QJsonArray &result)
 ExtractorResult (const QVector< QVariant > &result)
void append (ExtractorResult &&other)
bool isEmpty () const
QJsonArray jsonLdResult () const
QVector< QVariantresult () 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.

Member Function Documentation

◆ append()

void ExtractorResult::append ( ExtractorResult &&  other)

Append another result to this one.

Definition at line 53 of file extractorresult.cpp.

◆ isEmpty()

bool ExtractorResult::isEmpty ( ) const

Checks if there is any relevant result set in here.

Definition at line 27 of file extractorresult.cpp.

◆ jsonLdResult()

QJsonArray ExtractorResult::jsonLdResult ( ) const

JSON-LD data extracted from this document or page.

Definition at line 37 of file extractorresult.cpp.

◆ result()

QVector< QVariant > ExtractorResult::result ( ) const

Result in decoded form.

Definition at line 45 of file extractorresult.cpp.

◆ size()

int ExtractorResult::size ( ) const

Amount of contained result elements.

Definition at line 32 of file extractorresult.cpp.

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Wed Jun 29 2022 03:59:50 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.