EPUBToken.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 EPUBTOKEN_H_INCLUDED
11 #define EPUBTOKEN_H_INCLUDED
12 
13 #include <boost/static_assert.hpp>
14 
15 #include "EBOOKToken.h"
16 
17 namespace libebook
18 {
19 
20 namespace EPUBToken
21 {
22 
23 enum
24 {
27 
28  // namespace prefixes
30  xml,
32 
33  // elements
38 
39  // attributes
43 
44  // attribute values
48 
50 };
51 
53 
55 {
57  NS_xml = xml << 16,
58  NS_xmlns = xmlns << 16
59 };
60 
61 }
62 
63 int getEPUBTokenId(const char *name, const char *ns = 0);
64 int getEPUBTokenId(const char *name, std::size_t nameLen, const char *ns, std::size_t nsLen);
65 int getEPUBTokenId(const char *name, std::size_t nameLen);
66 
67 }
68 
69 #endif // EPUBTOKEN_H_INCLUDED
70 
71 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libebook::EPUBToken::FIRST_TOKEN
@ FIRST_TOKEN
Definition: EPUBToken.h:26
libebook::EPUBToken::Namespace
Namespace
Definition: EPUBToken.h:55
libebook::EPUBToken::media_type
@ media_type
Definition: EPUBToken.h:42
libebook::EPUBToken::rootfiles
@ rootfiles
Definition: EPUBToken.h:34
libebook::EPUBToken::NS_container
@ NS_container
Definition: EPUBToken.h:56
libebook::EPUBToken::MIME_epub
@ MIME_epub
Definition: EPUBToken.h:46
libebook::EPUBToken::xmlns
@ xmlns
Definition: EPUBToken.h:31
libebook::EPUBToken::rootfile
@ rootfile
Definition: EPUBToken.h:35
libebook::EPUBToken::encryption
@ encryption
Definition: EPUBToken.h:37
libebook::EPUBToken::signatures
@ signatures
Definition: EPUBToken.h:36
libebook
Definition: CHMParser.cpp:21
libebook::EBOOKToken
Definition: EBOOKToken.h:18
libebook::getEPUBTokenId
int getEPUBTokenId(const char *const name, const char *const ns)
Definition: EPUBToken.cpp:27
libebook::EPUBToken::INVALID_TOKEN
@ INVALID_TOKEN
Definition: EPUBToken.h:25
libebook::EPUBToken::BOOST_STATIC_ASSERT
BOOST_STATIC_ASSERT(EBOOKToken< EPUBParser >::LAST_TOKEN >=LAST_TOKEN)
libebook::EPUBToken::version
@ version
Definition: EPUBToken.h:40
libebook::EPUBToken::full_path
@ full_path
Definition: EPUBToken.h:41
libebook::EPUBToken::_1_0
@ _1_0
Definition: EPUBToken.h:45
EPUBToken.h
libebook::EPUBToken::xml
@ xml
Definition: EPUBToken.h:30
name
string name
Definition: CHMStream.cpp:80
libebook::EPUBToken::NS_xmlns
@ NS_xmlns
Definition: EPUBToken.h:58
libebook::EPUBToken::MIME_opf
@ MIME_opf
Definition: EPUBToken.h:47
EBOOKToken.h
libebook::EPUBToken::LAST_TOKEN
@ LAST_TOKEN
Definition: EPUBToken.h:49
libebook::EPUBToken::container
@ container
Definition: EPUBToken.h:29
libebook::EPUBToken::NS_xml
@ NS_xml
Definition: EPUBToken.h:57

Generated for libe-book by doxygen 1.8.18