KItinerary::AbstractExtractor

Search for usage in LXR

KItinerary::AbstractExtractor Class Referenceabstract

#include <abstractextractor.h>

Inheritance diagram for KItinerary::AbstractExtractor:

Public Member Functions

virtual bool canHandle (const ExtractorDocumentNode &node) const =0
 
virtual ExtractorResult extract (const ExtractorDocumentNode &node, const ExtractorEngine *engine) const =0
 
virtual QString name () const =0
 

Detailed Description

Abstract base class for data extractors.

Definition at line 19 of file abstractextractor.h.

Member Function Documentation

◆ canHandle()

virtual bool KItinerary::AbstractExtractor::canHandle ( const ExtractorDocumentNode & node) const
pure virtual

Fast check whether this extractor is applicable for node.

Implemented in KItinerary::ActivityPubExtractor, KItinerary::GenericBoardingPassExtractor, and KItinerary::ScriptExtractor.

◆ extract()

virtual ExtractorResult KItinerary::AbstractExtractor::extract ( const ExtractorDocumentNode & node,
const ExtractorEngine * engine ) const
pure virtual

◆ name()

virtual QString KItinerary::AbstractExtractor::name ( ) const
pure virtual

Identifier for this extractor.

Mainly used for diagnostics and tooling.

Implemented in KItinerary::ActivityPubExtractor, KItinerary::GenericBoardingPassExtractor, and KItinerary::ScriptExtractor.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:28:49 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.