NUM1XMLContextBase.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 NUM1XMLCONTEXTBASE_H_INCLUDED
00011 #define NUM1XMLCONTEXTBASE_H_INCLUDED
00012 
00013 #include "IWORKXMLContextBase.h"
00014 
00015 namespace libetonyek
00016 {
00017 
00018 class NUM1ParserState;
00019 class NUMCollector;
00020 
00021 template<class Base>
00022 class NUM1XMLContextBase : public IWORKXMLContextBase<Base, NUM1ParserState, NUMCollector>
00023 {
00024   typedef IWORKXMLContextBase<Base, NUM1ParserState, NUMCollector> Parent_t;
00025 
00026 public:
00027   explicit NUM1XMLContextBase(NUM1ParserState &state)
00028     : Parent_t(state)
00029   {
00030   }
00031 };
00032 
00033 typedef NUM1XMLContextBase<IWORKXMLContextElement> NUM1XMLElementContextBase;
00034 typedef NUM1XMLContextBase<IWORKXMLContextText> NUM1XMLTextContextBase;
00035 typedef NUM1XMLContextBase<IWORKXMLContextMixed> NUM1XMLixedContextBase;
00036 typedef NUM1XMLContextBase<IWORKXMLContextEmpty> NUM1XMLEmptyContextBase;
00037 
00038 }
00039 
00040 #endif // NUM1XMLCONTEXTBASE_H_INCLUDED
00041 
00042 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */