KEY2XMLContextBase.h Source File documentation

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List
- File Members

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