FB2ContentMap.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* libe-book
3  * Version: MPL 2.0 / LGPLv2.1+
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * Alternatively, the contents of this file may be used under the terms
10  * of the GNU Lesser General Public License Version 2.1 or later
11  * (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
12  * applicable instead of those above.
13  *
14  * For further information visit http://libebook.sourceforge.net
15  */
16 
17 #ifndef FB2CONTENTMAP_H_INCLUDED
18 #define FB2CONTENTMAP_H_INCLUDED
19 
20 #include <string>
21 
22 namespace libebook
23 {
24 
25 struct ContentMapImpl;
26 class FB2Content;
27 
29 {
30  // no copying
31  FB2ContentMap(const FB2ContentMap &other);
32  FB2ContentMap &operator=(const FB2ContentMap &other);
33 
34 public:
35  FB2ContentMap();
37 
38  bool insert(const std::string &id, const FB2Content *content);
39  bool exists(const std::string &id) const;
40  const FB2Content *get(const std::string &id) const;
41 
43 };
44 
45 }
46 
47 #endif // FB2CONTENTMAP_H_INCLUDED
48 
49 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
~FB2ContentMap()
Definition: FB2ContentMap.cpp:47
int id
Definition: FB2Token.cpp:27
bool exists(const std::string &id) const
Definition: FB2ContentMap.cpp:59
Represents a part of FB2 content.
Definition: FB2Content.h:34
bool insert(const std::string &id, const FB2Content *content)
Definition: FB2ContentMap.cpp:54
Definition: FB2ContentMap.h:28
Definition: FB2ContentMap.cpp:27
ContentMapImpl *const m_impl
Definition: FB2ContentMap.h:42
FB2ContentMap & operator=(const FB2ContentMap &other)
FB2ContentMap()
Definition: FB2ContentMap.cpp:42

Generated for libe-book by doxygen 1.8.5