IWORKNumericPropertyContext.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 IWORKNUMERICPROPERTYCONTEXT_H_INCLUDED
11#define IWORKNUMERICPROPERTYCONTEXT_H_INCLUDED
12
13#include "IWORKNumberElement.h"
14#include "IWORKPropertyContext.h"
15
16 namespace libetonyek
17{
18
19 template<class Property, int TokenId2=0>
20 class IWORKNumericPropertyContext : public IWORKPropertyContext<Property, IWORKNumberElement<typename IWORKPropertyInfo<Property>::ValueType>, IWORKToken::NS_URI_SF | IWORKToken::number, TokenId2>
21{
22 typedef IWORKPropertyContext<Property, IWORKNumberElement<typename IWORKPropertyInfo<Property>::ValueType>, IWORKToken::NS_URI_SF | IWORKToken::number, TokenId2> Parent_t;
23
24 public:
25 IWORKNumericPropertyContext(IWORKXMLParserState &state, IWORKPropertyMap &propMap);
26};
27
28 template<class Property, int TokenId2>
29 IWORKNumericPropertyContext<Property, TokenId2>::IWORKNumericPropertyContext(IWORKXMLParserState &state, IWORKPropertyMap &propMap)
30 : Parent_t(state, propMap)
31{
32}
33
34}
35
36#endif // IWORKNUMERICPROPERTYCONTEXT_H_INCLUDED
37
38/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
IWORKNumberElement.h
IWORKPropertyContext.h
libetonyek::IWORKNumericPropertyContext::Parent_t
IWORKPropertyContext< Property, IWORKNumberElement< typename IWORKPropertyInfo< Property >::ValueType >, IWORKToken::NS_URI_SF|IWORKToken::number, TokenId2 > Parent_t
Definition IWORKNumericPropertyContext.h:22
libetonyek::IWORKNumericPropertyContext::IWORKNumericPropertyContext
IWORKNumericPropertyContext(IWORKXMLParserState &state, IWORKPropertyMap &propMap)
Definition IWORKNumericPropertyContext.h:29
libetonyek::IWORKPropertyContext< Property, IWORKNumberElement< IWORKPropertyInfo< Property >::ValueType >, IWORKToken::NS_URI_SF|IWORKToken::number, 0 >::IWORKPropertyContext
IWORKPropertyContext(IWORKXMLParserState &state, IWORKPropertyMap &propMap)
Definition IWORKPropertyContext.h:37
libetonyek::IWORKPropertyMap
Represents a (hierarchical) property map.
Definition IWORKPropertyMap.h:25
libetonyek::IWORKXMLParserState
Definition IWORKXMLParserState.h:32
libetonyek::IWORKToken::number
@ number
Definition IWORKToken.h:336
libetonyek::IWORKToken::NS_URI_SF
@ NS_URI_SF
Definition IWORKToken.h:696
libetonyek
Definition IWORKBezierElement.cpp:21