NUM1Token.h
Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
00002 /*
00003  * This file is part of the libetonyek project.
00004  *
00005  * This Source Code Form is subject to the terms of the Mozilla Public
00006  * License, v. 2.0. If a copy of the MPL was not distributed with this
00007  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
00008  */
00009 
00010 #ifndef NUM1TOKEN_H_INCLUDED
00011 #define NUM1TOKEN_H_INCLUDED
00012 
00013 #include <boost/static_assert.hpp>
00014 
00015 #include "IWORKTokenInfo.h"
00016 
00017 namespace libetonyek
00018 {
00019 
00020 class IWORKTokenizer;
00021 
00022 namespace NUM1Token
00023 {
00024 
00025 enum
00026 {
00027   INVALID_TOKEN = 0,
00028   FIRST_TOKEN = IWORKTokenInfo<NUM1Parser>::first,
00029 
00030   // namespace prefixes
00031   ls,
00032 
00033   // elements
00034   document,
00035   page_info,
00036   stylesheet,
00037   workspace,
00038   workspace_array,
00039 
00040   // attributes
00041   version,
00042 
00043   // attribute values
00044   VERSION_STR_2,
00045 
00046   LAST_TOKEN
00047 };
00048 
00049 BOOST_STATIC_ASSERT(IWORKTokenInfo<NUM1Parser>::last >= LAST_TOKEN);
00050 
00051 enum Namespace
00052 {
00053   NS_URI_LS = ls << 16
00054 };
00055 
00056 const IWORKTokenizer &getTokenizer();
00057 
00058 }
00059 
00060 }
00061 
00062 #endif // NUM1TOKEN_H_INCLUDED
00063 
00064 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */