Syndication

mapper.h
1 /*
2  This file is part of the syndication library
3  SPDX-FileCopyrightText: 2006 Frank Osterfeld <[email protected]>
4 
5  SPDX-License-Identifier: LGPL-2.0-or-later
6 */
7 
8 #ifndef SYNDICATION_MAPPER_H
9 #define SYNDICATION_MAPPER_H
10 
11 #include "syndication_export.h"
12 
13 namespace Syndication
14 {
15 
16 class SpecificDocument;
17 //@cond PRIVATE
18 typedef QSharedPointer<SpecificDocument> SpecificDocumentPtr;
19 //@endcond
20 
91 template <class T>
92 class SYNDICATION_EXPORT Mapper
93 {
94 public:
95 
99  virtual ~Mapper() {}
100 
115  virtual QSharedPointer<T> map(SpecificDocumentPtr doc) const = 0;
116 };
117 
118 } // namespace syndication
119 
120 #endif // SYNDICATION_MAPPER_H
virtual ~Mapper()
virtual destructor
Definition: mapper.h:99
A mapper maps an SpecificDocument to something else.
Definition: mapper.h:92
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Tue Aug 11 2020 23:05:05 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.