NUM1Token.h Source File documentation

NUM1Token.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 libetonyek 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 NUM1TOKEN_H_INCLUDED
11 #define NUM1TOKEN_H_INCLUDED
12
13 #include <boost/static_assert.hpp>
14
15 #include "IWORKTokenInfo.h"
16
17 namespace libetonyek
18 {
19
20 class IWORKTokenizer;
21
22 namespace NUM1Token
23 {
24
25 enum
26 {
27 INVALID_TOKEN = 0,
28 FIRST_TOKEN = IWORKTokenInfo<NUM1Parser>::first,
29
30 // namespace prefixes
31 ls,
32
33 // elements
34 document,
35 page_info,
36 stylesheet,
37 workspace,
38 workspace_array,
39
40 // attributes
41 version,
42
43 // attribute values
44 VERSION_STR_2,
45
46 LAST_TOKEN
47 };
48
49 BOOST_STATIC_ASSERT(IWORKTokenInfo<NUM1Parser>::last >= LAST_TOKEN);
50
51 enum Namespace
52 {
53 NS_URI_LS = ls << 16
54 };
55
56 const IWORKTokenizer &getTokenizer();
57
58 }
59
60 }
61
62 #endif // NUM1TOKEN_H_INCLUDED
63
64 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libetonyek
Definition: IWORKBezierElement.cpp:18
libetonyek::NUM1Token::ls
Definition: NUM1Token.h:31
libetonyek::NUM1Token::LAST_TOKEN
Definition: NUM1Token.h:46
libetonyek::IWORKTokenInfo
Definition: IWORKTokenInfo.h:17
libetonyek::NUM1Token::BOOST_STATIC_ASSERT
BOOST_STATIC_ASSERT(IWORKTokenInfo< NUM1Parser >::last >=LAST_TOKEN)
libetonyek::NUM1Token::NS_URI_LS
Definition: NUM1Token.h:53
libetonyek::NUM1Token::stylesheet
Definition: NUM1Token.h:36
libetonyek::NUM1Token::page_info
Definition: NUM1Token.h:35
libetonyek::NUM1Token::version
Definition: NUM1Token.h:41
libetonyek::NUM1Token::getTokenizer
const IWORKTokenizer & getTokenizer()
Definition: NUM1Token.cpp:58
libetonyek::NUM1Token::FIRST_TOKEN
Definition: NUM1Token.h:28
libetonyek::NUM1Token::Namespace
Namespace
Definition: NUM1Token.h:51
libetonyek::NUM1Token::VERSION_STR_2
Definition: NUM1Token.h:44
libetonyek::NUM1Token::workspace_array
Definition: NUM1Token.h:38
libetonyek::NUM1Token::document
Definition: NUM1Token.h:34
libetonyek::NUM1Token::workspace
Definition: NUM1Token.h:37
libetonyek::IWORKTokenizer
Definition: IWORKTokenizer.h:16
libetonyek::NUM1Token::INVALID_TOKEN
Definition: NUM1Token.h:27
IWORKTokenInfo.h