Syndication

documentvisitor.cpp
1/*
2 This file is part of the syndication library
3 SPDX-FileCopyrightText: 2005 Frank Osterfeld <osterfeld@kde.org>
4
5 SPDX-License-Identifier: LGPL-2.0-or-later
6*/
7
8#include "documentvisitor.h"
9#include "specificdocument.h"
10
11namespace Syndication
12{
16
18{
19 return document->accept(this);
20}
21
22bool DocumentVisitor::visitRSS2Document(Syndication::RSS2::Document *)
23{
24 return false;
25}
26
27bool DocumentVisitor::visitRDFDocument(Syndication::RDF::Document *)
28{
29 return false;
30}
31
36
41
42} // namespace Syndication
An Atom 1.0 Entry Document, containing a single Atom entry outside of the context of a feed.
An Atom 1.0 Feed Document, containing metadata describing the feed and a number of entries.
virtual bool visitRSS2Document(Syndication::RSS2::Document *document)
reimplement this method to handle RSS2-like (RSS 0.9x, 2.0) documents.
virtual bool visit(SpecificDocument *document)
call this method to handle a document.
virtual ~DocumentVisitor()
destructor
virtual bool visitRDFDocument(Syndication::RDF::Document *document)
reimplement this method to handle RDF (i.e.
virtual bool visitAtomFeedDocument(Syndication::Atom::FeedDocument *document)
reimplement this method to handle Atom feed documents (most Atom feeds are of this type).
virtual bool visitAtomEntryDocument(Syndication::Atom::EntryDocument *document)
reimplement this method to handle Atom entry documents.
Document interface for format-specific feed documents as parsed from a document source (see DocumentS...
virtual bool accept(DocumentVisitor *visitor)=0
This must be implemented for the double dispatch technique (Visitor pattern).
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 17 2024 11:56:56 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.