Syndication

documentvisitor.cpp
1 /*
2  * This file is part of the syndication library
3  *
4  * Copyright (C) 2005 Frank Osterfeld <[email protected]>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Library General Public License for more details.
15  *
16  * You should have received a copy of the GNU Library General Public License
17  * along with this library; see the file COPYING.LIB. If not, write to
18  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  * Boston, MA 02110-1301, USA.
20  *
21  */
22 
23 #include "documentvisitor.h"
24 #include "specificdocument.h"
25 
26 namespace Syndication
27 {
28 
30 {
31 }
32 
34 {
35  return document->accept(this);
36 }
37 
39 {
40  return false;
41 }
42 
44 {
45  return false;
46 }
47 
49 {
50  return false;
51 }
52 
54 {
55  return false;
56 }
57 
58 } // namespace Syndication
document implementation, representing an RSS feed from the 0.91-0.94/2.0 family.
Definition: rss2/document.h:57
Document implementation for RDF, representing an RSS 1.0 feed.
Definition: rdf/document.h:53
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:59
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-2020 The KDE developers.
Generated on Mon May 25 2020 23:08:58 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.