KItinerary

jsonlddocumentprocessor.h
1/*
2 SPDX-FileCopyrightText: 2017-2021 Volker Krause <vkrause@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8
9#include <KItinerary/ExtractorDocumentProcessor>
10
11namespace KItinerary {
12
13/** Processor for raw JSON-LD data.
14 * This is simply a pass-through for JSON data, so the using code can apply post-processing to that.
15 */
17{
18public:
19 bool canHandleData(const QByteArray &encodedData, QStringView fileName) const override;
20 ExtractorDocumentNode createNodeFromData(const QByteArray &encodedData) const override;
21 void preExtract(ExtractorDocumentNode &node, const ExtractorEngine *engine) const override;
22};
23
24}
25
A node in the extracted document object tree.
Abstract base class of a document type processor.
Semantic data extraction engine.
Processor for raw JSON-LD data.
bool canHandleData(const QByteArray &encodedData, QStringView fileName) const override
Fast check whether the given encoded data can possibly be processed by this instance.
ExtractorDocumentNode createNodeFromData(const QByteArray &encodedData) const override
Create a document node from raw data.
void preExtract(ExtractorDocumentNode &node, const ExtractorEngine *engine) const override
Called before extractors are applied to node.
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 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.