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 {
27 
28  // keys
47  URL,
49 
50  // values
52 
54 };
55 
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: */
string name
Definition: CHMStream.cpp:80
BOOST_STATIC_ASSERT(EBOOKToken< RBParser >::LAST_TOKEN >=LAST_TOKEN)
@ REVISION
Definition: RBToken.h:42
@ TITLE
Definition: RBToken.h:44
@ COPYTITLE
Definition: RBToken.h:33
@ BODY
Definition: RBToken.h:30
@ OUTPUT
Definition: RBToken.h:38
@ USERNAME
Definition: RBToken.h:48
@ TITLE_LANGUAGE
Definition: RBToken.h:45
@ LAST_TOKEN
Definition: RBToken.h:53
@ FIRST_TOKEN
Definition: RBToken.h:26
@ TYPE
Definition: RBToken.h:46
@ URL
Definition: RBToken.h:47
@ COPY_ID
Definition: RBToken.h:34
@ PARSE
Definition: RBToken.h:39
@ COPYRIGHT
Definition: RBToken.h:32
@ ISBN
Definition: RBToken.h:36
@ INVALID_TOKEN
Definition: RBToken.h:25
@ PUB_NAME
Definition: RBToken.h:41
@ unknown
Definition: RBToken.h:51
@ MENUMARK
Definition: RBToken.h:37
@ PUBSERVER_ID
Definition: RBToken.h:40
@ AUTHOR
Definition: RBToken.h:29
@ GENERATOR
Definition: RBToken.h:35
@ COMMENT
Definition: RBToken.h:31
@ SuggestedRetailPrice
Definition: RBToken.h:43
Definition: CHMParser.cpp:21
int getRBTokenId(const char *const name, const char *const ns)
Definition: RBToken.cpp:27
Definition: EBOOKToken.h:18

Generated for libe-book by doxygen 1.9.1