FB2ContentMap.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /*
3  * This file is part of the libe-book project.
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 
10 #ifndef FB2CONTENTMAP_H_INCLUDED
11 #define FB2CONTENTMAP_H_INCLUDED
12 
13 #include <string>
14 
15 namespace libebook
16 {
17 
18 struct ContentMapImpl;
19 class FB2Content;
20 
22 {
23  // no copying
24  FB2ContentMap(const FB2ContentMap &other);
25  FB2ContentMap &operator=(const FB2ContentMap &other);
26 
27 public:
28  FB2ContentMap();
30 
31  bool insert(const std::string &id, const FB2Content *content);
32  bool exists(const std::string &id) const;
33  const FB2Content *get(const std::string &id) const;
34 
36 };
37 
38 }
39 
40 #endif // FB2CONTENTMAP_H_INCLUDED
41 
42 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
~FB2ContentMap()
Definition: FB2ContentMap.cpp:40
bool exists(const std::string &id) const
Definition: FB2ContentMap.cpp:52
Definition: EBOOKHTMLToken.h:187
Represents a part of FB2 content.
Definition: FB2Content.h:27
bool insert(const std::string &id, const FB2Content *content)
Definition: FB2ContentMap.cpp:47
Definition: FB2ContentMap.h:21
Definition: FB2ContentMap.cpp:20
ContentMapImpl *const m_impl
Definition: FB2ContentMap.h:35
FB2ContentMap & operator=(const FB2ContentMap &other)
int id
Definition: EBOOKHTMLToken.cpp:45
Definition: CHMParser.cpp:20
FB2ContentMap()
Definition: FB2ContentMap.cpp:35

Generated for libe-book by doxygen 1.8.8