Syndication

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

KDE's Doxygen guidelines are available online.