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

Generated for libepubgen by doxygen 1.14.0