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

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

Fast check whether this extractor is applicable for node.

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

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

Extract data from node.

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

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

Identifier for this extractor.

Mainly used for diagnostics and tooling.

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


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Nov 30 2021 23:06:14 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.