EBOOKToken.h Source File documentation

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List
- File Members

EBOOKToken.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 EBOOKTOKEN_H_INCLUDED
11 #define EBOOKTOKEN_H_INCLUDED
12
13 namespace libebook
14 {
15
16 template<class Parser>
17 struct EBOOKToken
18 {
19 };
20
21 class EBOOKHTMLParser;
22 class EBOOKOPFParser;
23 class EPUBParser;
24 class FB2Parser;
25 class RBParser;
26
27 template<>
28 struct EBOOKToken<EBOOKHTMLParser>
29 {
30 static const int FIRST_TOKEN = 1;
31 static const int LAST_TOKEN = FIRST_TOKEN + 1000;
32 };
33
34 template<>
35 struct EBOOKToken<EBOOKOPFParser>
36 {
37 static const int FIRST_TOKEN = EBOOKToken<EBOOKHTMLParser>::LAST_TOKEN + 1;
38 static const int LAST_TOKEN = FIRST_TOKEN + 1000;
39 };
40
41 template<>
42 struct EBOOKToken<EPUBParser>
43 {
44 static const int FIRST_TOKEN = EBOOKToken<EBOOKOPFParser>::LAST_TOKEN + 1;
45 static const int LAST_TOKEN = FIRST_TOKEN + 1000;
46 };
47
48 template<>
49 struct EBOOKToken<FB2Parser>
50 {
51 static const int FIRST_TOKEN = EBOOKToken<EPUBParser>::LAST_TOKEN + 1;
52 static const int LAST_TOKEN = FIRST_TOKEN + 1000;
53 };
54
55 template<>
56 struct EBOOKToken<RBParser>
57 {
58 static const int FIRST_TOKEN = EBOOKToken<FB2Parser>::LAST_TOKEN + 1;
59 static const int LAST_TOKEN = FIRST_TOKEN + 1000;
60 };
61
62 }
63
64 #endif // EBOOKTOKEN_H_INCLUDED
65
66 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libebook::EBOOKHTMLToken::LAST_TOKEN
Definition: EBOOKHTMLToken.h:327
libebook::EBOOKHTMLParser
Definition: EBOOKHTMLParser.h:31
libebook::EBOOKToken
Definition: EBOOKToken.h:17
libebook::RBParser
Definition: RBParser.h:20
libebook::EPUBParser
Definition: EPUBParser.h:18
libebook::EBOOKHTMLToken::FIRST_TOKEN
Definition: EBOOKHTMLToken.h:26
libebook::FB2Parser
Definition: FB2Parser.h:19
libebook
Definition: CHMParser.cpp:20
libebook::EBOOKOPFParser
Definition: EBOOKOPFParser.h:20