NUM1XMLContextBase.h Source File documentation

NUM1XMLContextBase.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 NUM1XMLCONTEXTBASE_H_INCLUDED
11 #define NUM1XMLCONTEXTBASE_H_INCLUDED
12
13 #include "IWORKXMLContextBase.h"
14
15 namespace libetonyek
16 {
17
18 class NUM1ParserState;
19 class NUMCollector;
20
21 template<class Base>
22 class NUM1XMLContextBase : public IWORKXMLContextBase<Base, NUM1ParserState, NUMCollector>
23 {
24 typedef IWORKXMLContextBase<Base, NUM1ParserState, NUMCollector> Parent_t;
25
26 public:
27 explicit NUM1XMLContextBase(NUM1ParserState &state)
28 : Parent_t(state)
29 {
30 }
31 template<typename T>
32 NUM1XMLContextBase(NUM1ParserState &state, const T &a)
33 : Parent_t(state, a)
34 {
35 }
36 };
37
38 typedef NUM1XMLContextBase<IWORKXMLContextElement> NUM1XMLElementContextBase;
39 typedef NUM1XMLContextBase<IWORKXMLContextText> NUM1XMLTextContextBase;
40 typedef NUM1XMLContextBase<IWORKXMLContextMixed> NUM1XMLixedContextBase;
41 typedef NUM1XMLContextBase<IWORKXMLContextEmpty> NUM1XMLEmptyContextBase;
42
43 }
44
45 #endif // NUM1XMLCONTEXTBASE_H_INCLUDED
46
47 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libetonyek
Definition: IWORKBezierElement.cpp:20
IWORKXMLContextBase.h
libetonyek::NUM1XMLContextBase::NUM1XMLContextBase
NUM1XMLContextBase(NUM1ParserState &state, const T &a)
Definition: NUM1XMLContextBase.h:32
libetonyek::NUM1XMLContextBase::Parent_t
IWORKXMLContextBase< Base, NUM1ParserState, NUMCollector > Parent_t
Definition: NUM1XMLContextBase.h:24
libetonyek::NUM1XMLContextBase
Definition: NUM1XMLContextBase.h:22
libetonyek::IWORKToken::a
Definition: IWORKToken.h:501
libetonyek::NUM1XMLEmptyContextBase
NUM1XMLContextBase< IWORKXMLContextEmpty > NUM1XMLEmptyContextBase
Definition: NUM1XMLContextBase.h:41
libetonyek::NUM1XMLixedContextBase
NUM1XMLContextBase< IWORKXMLContextMixed > NUM1XMLixedContextBase
Definition: NUM1XMLContextBase.h:40
libetonyek::IWORKXMLContextBase
Definition: IWORKXMLContextBase.h:27
libetonyek::NUM1XMLContextBase::NUM1XMLContextBase
NUM1XMLContextBase(NUM1ParserState &state)
Definition: NUM1XMLContextBase.h:27
libetonyek::NUM1XMLTextContextBase
NUM1XMLContextBase< IWORKXMLContextText > NUM1XMLTextContextBase
Definition: NUM1XMLContextBase.h:39
libetonyek::NUM1XMLElementContextBase
NUM1XMLContextBase< IWORKXMLContextElement > NUM1XMLElementContextBase
Definition: NUM1XMLContextBase.h:38
libetonyek::NUM1ParserState
Definition: NUM1ParserState.h:22