EPUBManifest.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 libepubgen 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 INCLUDED_EPUBMANIFEST_H
11 #define INCLUDED_EPUBMANIFEST_H
12 
13 #include <string>
14 #include <unordered_map>
15 #include <utility>
16 
17 namespace libepubgen
18 {
19 
20 class EPUBPath;
21 class EPUBXMLSink;
22 
24 {
25  // disable copying
26  EPUBManifest(const EPUBManifest &);
28 
29  typedef std::pair<std::string, std::string> ValueType_t;
30  typedef std::unordered_map<std::string, ValueType_t> MapType_t;
31 
32 public:
33  EPUBManifest();
34 
35  void insert(const EPUBPath &path, const std::string &mimetype, const std::string &id);
36 
37  void writeTo(EPUBXMLSink &sink);
38 
39 private:
40  MapType_t m_map;
41 };
42 
43 }
44 
45 #endif // INCLUDED_EPUBMANIFEST_H
46 
47 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
std::pair< std::string, std::string > ValueType_t
Definition: EPUBManifest.h:29
Definition: EPUBBinarySink.cpp:12
EPUBManifest()
Definition: EPUBManifest.cpp:19
MapType_t m_map
Definition: EPUBManifest.h:40
Definition: EPUBManifest.h:23
void insert(const EPUBPath &path, const std::string &mimetype, const std::string &id)
Definition: EPUBManifest.cpp:24
EPUBManifest & operator=(const EPUBManifest &)
Representation of a path in the package.
Definition: EPUBPath.h:21
std::unordered_map< std::string, ValueType_t > MapType_t
Definition: EPUBManifest.h:30
Definition: EPUBXMLSink.h:25
void writeTo(EPUBXMLSink &sink)
Definition: EPUBManifest.cpp:32

Generated for libepubgen by doxygen 1.8.13