KItinerary
7#ifndef KITINERARY_JSONLDFILTERENGINE_H
8#define KITINERARY_JSONLDFILTERENGINE_H
10#include "kitinerary_export.h"
21 void renameProperty(QJsonObject &obj,
const char *oldName,
const char *newName);
27class KITINERARY_EXPORT JsonLdFilterEngine
30 explicit JsonLdFilterEngine();
31 ~JsonLdFilterEngine();
44 void setTypeMappings(
const TypeMapping *typeMappings, std::size_t count);
45 template <std::
size_t N>
46 inline void setTypeMappings(
const TypeMapping (&typeMappings)[N])
48 setTypeMappings(typeMappings, N);
58 void setTypeFilters(
const TypeFilter *typeFilters, std::size_t count);
59 template <std::
size_t N>
60 inline void setTypeFilters(
const TypeFilter (&typeFilters)[N])
62 setTypeFilters(typeFilters, N);
73 void setPropertyMappings(
const PropertyMapping *propertyMappings, std::size_t count);
74 template <std::
size_t N>
75 inline void setPropertyMappings(
const PropertyMapping (&propertyMappings)[N])
77 setPropertyMappings(propertyMappings, N);
81 const TypeMapping *m_typeMappings =
nullptr;
82 std::size_t m_typeMappingsSize;
83 const TypeFilter *m_typeFilters =
nullptr;
84 std::size_t m_typeFiltersSize;
85 const PropertyMapping *m_propertyMappings =
nullptr;
86 std::size_t m_propertyMappingsSize;
void filterRecursive(QJsonObject &obj)
Recursively apply filtering rules to obj.
JSON-LD data type helper functions.
void renameProperty(QJsonObject &obj, const char *oldName, const char *newName)
Rename a property, if present and the new name isn't in use already.
Classes for reservation/travel data models, data extraction and data augmentation.
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:52:35 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.