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