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 
22 bool DocumentVisitor::visitRSS2Document(Syndication::RSS2::Document *)
23 {
24  return false;
25 }
26 
27 bool DocumentVisitor::visitRDFDocument(Syndication::RDF::Document *)
28 {
29  return false;
30 }
31 
33 {
34  return false;
35 }
36 
38 {
39  return false;
40 }
41 
42 } // namespace Syndication
An Atom 1.0 Feed Document, containing metadata describing the feed and a number of entries.
Definition: atom/document.h:43
An Atom 1.0 Entry Document, containing a single Atom entry outside of the context of a feed.
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.
Document interface for format-specific feed documents as parsed from a document source (see DocumentS...
virtual bool visitAtomFeedDocument(Syndication::Atom::FeedDocument *document)
reimplement this method to handle Atom feed documents (most Atom feeds are of this type).
virtual bool accept(DocumentVisitor *visitor)=0
This must be implemented for the double dispatch technique (Visitor pattern).
virtual bool visitRSS2Document(Syndication::RSS2::Document *document)
reimplement this method to handle RSS2-like (RSS 0.9x, 2.0) documents.
virtual bool visitAtomEntryDocument(Syndication::Atom::EntryDocument *document)
reimplement this method to handle Atom entry documents.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon May 8 2023 03:57:11 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.