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: */
Definition: RBToken.h:33
Definition: RBToken.h:42
Definition: RBToken.h:45
Definition: RBToken.h:30
BOOST_STATIC_ASSERT(EBOOKToken< RBParser >::LAST_TOKEN >=LAST_TOKEN)
Definition: RBToken.h:36
Definition: RBToken.h:25
Definition: RBToken.h:41
Definition: RBToken.h:53
Definition: EBOOKToken.h:17
Definition: RBToken.h:37
Definition: RBToken.h:32
Definition: RBToken.h:34
Definition: RBToken.h:40
Definition: RBToken.h:29
string name
Definition: CHMStream.cpp:80
Definition: RBToken.h:31
Definition: RBToken.h:44
Definition: RBToken.h:48
Definition: RBToken.h:47
Definition: RBToken.h:26
Definition: RBToken.h:35
Definition: RBToken.h:38
Definition: CHMParser.cpp:20
Definition: RBToken.h:51
Definition: RBToken.h:46
int getRBTokenId(const char *const name, const char *const ns)
Definition: RBToken.cpp:27
Definition: RBToken.h:39

Generated for libe-book by doxygen 1.8.8