EBOOKToken.h Source File documentation

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