RBToken.h Source File documentation

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

- File List
- File Members

RBToken.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 RBTOKEN_H_INCLUDED
11 #define RBTOKEN_H_INCLUDED
12
13 #include <boost/static_assert.hpp>
14
15 #include "EBOOKToken.h"
16
17 namespace libebook
18 {
19
20 namespace RBToken
21 {
22
23 enum
24 {
25 INVALID_TOKEN = 0,
26 FIRST_TOKEN = EBOOKToken<RBParser>::FIRST_TOKEN,
27
28 // keys
29 AUTHOR,
30 BODY,
31 COMMENT,
32 COPYRIGHT,
33 COPYTITLE,
34 COPY_ID,
35 GENERATOR,
36 ISBN,
37 MENUMARK,
38 OUTPUT,
39 PARSE,
40 PUBSERVER_ID,
41 PUB_NAME,
42 REVISION,
43 SuggestedRetailPrice,
44 TITLE,
45 TITLE_LANGUAGE,
46 TYPE,
47 URL,
48 USERNAME,
49
50 // values
51 unknown,
52
53 LAST_TOKEN
54 };
55
56 BOOST_STATIC_ASSERT(EBOOKToken<RBParser>::LAST_TOKEN >= LAST_TOKEN);
57
58 }
59
60 int getRBTokenId(const char *name, const char *ns = 0);
61 int getRBTokenId(const char *name, std::size_t nameLen, const char *ns, std::size_t nsLen);
62 int getRBTokenId(const char *name, std::size_t nameLen);
63
64 }
65
66 #endif // RBTOKEN_H_INCLUDED
67
68 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libebook::RBToken::PARSE
Definition: RBToken.h:39
libebook::RBToken::OUTPUT
Definition: RBToken.h:38
libebook::RBToken::TITLE_LANGUAGE
Definition: RBToken.h:45
libebook::RBToken::FIRST_TOKEN
Definition: RBToken.h:26
libebook::RBToken::BOOST_STATIC_ASSERT
BOOST_STATIC_ASSERT(EBOOKToken< RBParser >::LAST_TOKEN >=LAST_TOKEN)
libebook::RBToken::TITLE
Definition: RBToken.h:44
libebook::RBToken::ISBN
Definition: RBToken.h:36
libebook::RBToken::GENERATOR
Definition: RBToken.h:35
libebook::RBToken::COMMENT
Definition: RBToken.h:31
libebook::RBToken::INVALID_TOKEN
Definition: RBToken.h:25
libebook::RBToken::AUTHOR
Definition: RBToken.h:29
libebook::RBToken::PUB_NAME
Definition: RBToken.h:41
libebook::RBToken::USERNAME
Definition: RBToken.h:48
libebook::RBToken::unknown
Definition: RBToken.h:51
libebook::EBOOKToken
Definition: EBOOKToken.h:17
libebook::RBToken::URL
Definition: RBToken.h:47
name
string name
Definition: CHMStream.cpp:80
libebook::RBToken::PUBSERVER_ID
Definition: RBToken.h:40
libebook::RBToken::BODY
Definition: RBToken.h:30
libebook::RBToken::COPYRIGHT
Definition: RBToken.h:32
libebook::RBToken::COPYTITLE
Definition: RBToken.h:33
EBOOKToken.h
libebook
Definition: CHMParser.cpp:20
libebook::RBToken::COPY_ID
Definition: RBToken.h:34
libebook::RBToken::REVISION
Definition: RBToken.h:42
libebook::RBToken::TYPE
Definition: RBToken.h:46
libebook::RBToken::MENUMARK
Definition: RBToken.h:37
libebook::RBToken::SuggestedRetailPrice
Definition: RBToken.h:43
libebook::RBToken::LAST_TOKEN
Definition: RBToken.h:53
libebook::getRBTokenId
int getRBTokenId(const char *const name, const char *const ns)
Definition: RBToken.cpp:27