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