Syndication

mapperrdfimpl.h
1 /*
2  * This file is part of the syndication library
3  *
4  * Copyright (C) 2006 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 #ifndef SYNDICATION_MAPPER_MAPPERRDFIMPL_H
24 #define SYNDICATION_MAPPER_MAPPERRDFIMPL_H
25 
26 #include "feedrdfimpl.h"
27 
28 #include <rdf/document.h>
29 #include <specificdocument.h>
30 #include <feed.h>
31 #include <mapper.h>
32 
33 namespace Syndication
34 {
35 
37 class RDFMapper : public Mapper<Feed>
38 {
39  QSharedPointer<Feed> map(SpecificDocumentPtr doc) const override
40  {
41  return QSharedPointer<Feed>(new FeedRDFImpl(doc.staticCast<RDF::Document>()));
42  }
43 };
44 
45 } // namespace Syndication
46 
47 #endif // SYNDICATION_MAPPER_MAPPERRDFIMPL_H
Document implementation for RDF, representing an RSS 1.0 feed.
Definition: rdf/document.h:53
A mapper maps an SpecificDocument to something else.
Definition: mapper.h:107
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.