KEY1StringConverter.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 KEY1STRINGCONVERTER_H_INCLUDED
11 #define KEY1STRINGCONVERTER_H_INCLUDED
12 
13 #include <boost/optional.hpp>
14 
15 #include <glm/glm.hpp>
16 
17 #include "IWORKTypes.h"
18 
19 namespace libetonyek
20 {
21 template<typename T>
23 {
24  static boost::optional<T> convert(const char *value);
25 };
26 
27 #define KEY1_DECLARE_STRING_CONVERTER(type) \
28 template<> \
29 struct KEY1StringConverter<type> \
30 { \
31 static boost::optional<type> convert (const char *value); \
32 }
33 
36 KEY1_DECLARE_STRING_CONVERTER(IWORKPosition);
38 }
39 
40 #endif // KEY1STRINGCONVERTER_H_INCLUDED
41 
42 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
Definition: KEY1StringConverter.h:22
Definition: IWORKToken.h:631
KEY1_DECLARE_STRING_CONVERTER(glm::dmat3)
static boost::optional< T > convert(const char *value)
Definition: KEY1StringConverter.cpp:28

Generated for libetonyek by doxygen 1.8.6