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
19namespace libetonyek
20{
21template<typename T>
23{
24 static boost::optional<T> convert(const char *value);
25};
26
27#define KEY1_DECLARE_STRING_CONVERTER(type) \
28template<> \
29struct KEY1StringConverter<type> \
30{ \
31static boost::optional<type> convert (const char *value); \
32}
33
38}
39
40#endif // KEY1STRINGCONVERTER_H_INCLUDED
41
42/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
#define KEY1_DECLARE_STRING_CONVERTER(type)
Definition KEY1StringConverter.h:27
@ value
Definition IWORKToken.h:631
Definition IWORKBezierElement.cpp:21
Definition IWORKTypes.h:79
Definition IWORKTypes.h:53
Definition IWORKTypes.h:45
Definition KEY1StringConverter.h:23
static boost::optional< T > convert(const char *value)
Definition KEY1StringConverter.cpp:28

Generated for libetonyek by doxygen 1.12.0