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 workspace_style,
40
41 // attributes
42 version,
43
44 // attribute values
45 VERSION_STR_2,
46
47 LAST_TOKEN
48 };
49
50 BOOST_STATIC_ASSERT(IWORKTokenInfo<NUM1Parser>::last >= LAST_TOKEN);
51
52 enum Namespace
53 {
54 NS_URI_LS = ls << 16
55 };
56
57 const IWORKTokenizer &getTokenizer();
58
59 }
60
61 }
62
63 #endif // NUM1TOKEN_H_INCLUDED
64
65 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libetonyek
Definition: IWORKBezierElement.cpp:20
libetonyek::NUM1Token::ls
Definition: NUM1Token.h:31
libetonyek::NUM1Token::LAST_TOKEN
Definition: NUM1Token.h:47
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:54
libetonyek::NUM1Token::stylesheet
Definition: NUM1Token.h:36
libetonyek::NUM1Token::page_info
Definition: NUM1Token.h:35
libetonyek::NUM1Token::version
Definition: NUM1Token.h:42
libetonyek::NUM1Token::getTokenizer
const IWORKTokenizer & getTokenizer()
Definition: NUM1Token.cpp:57
libetonyek::NUM1Token::FIRST_TOKEN
Definition: NUM1Token.h:28
libetonyek::NUM1Token::Namespace
Namespace
Definition: NUM1Token.h:52
libetonyek::NUM1Token::VERSION_STR_2
Definition: NUM1Token.h:45
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
libetonyek::NUM1Token::workspace_style
Definition: NUM1Token.h:39
IWORKTokenInfo.h