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
21 class FB2ContentMap
22 {
23 // no copying
24 FB2ContentMap(const FB2ContentMap &other);
25 FB2ContentMap &operator=(const FB2ContentMap &other);
26
27 public:
28 FB2ContentMap();
29 ~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
35 ContentMapImpl *const m_impl;
36 };
37
38 }
39
40 #endif // FB2CONTENTMAP_H_INCLUDED
41
42 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libebook::FB2ContentMap::~FB2ContentMap
~FB2ContentMap()
Definition: FB2ContentMap.cpp:40
libebook::FB2Content
Represents a part of FB2 content.
Definition: FB2Content.h:27
libebook::EBOOKHTMLToken::content
Definition: EBOOKHTMLToken.h:187
libebook::FB2ContentMap::insert
bool insert(const std::string &id, const FB2Content *content)
Definition: FB2ContentMap.cpp:47
libebook::FB2ContentMap::exists
bool exists(const std::string &id) const
Definition: FB2ContentMap.cpp:52
libebook::EBOOKHTMLToken::id
Definition: EBOOKHTMLToken.h:205
libebook::FB2ContentMap
Definition: FB2ContentMap.h:21
libebook::ContentMapImpl
Definition: FB2ContentMap.cpp:20
libebook::FB2ContentMap::m_impl
ContentMapImpl *const m_impl
Definition: FB2ContentMap.h:35
libebook::FB2ContentMap::operator=
FB2ContentMap & operator=(const FB2ContentMap &other)
libebook
Definition: CHMParser.cpp:20
libebook::FB2ContentMap::FB2ContentMap
FB2ContentMap()
Definition: FB2ContentMap.cpp:35