fw4spl
StringKeyTypeMapping.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2015.
3  * Distributed under the terms of the GNU Lesser General Public License (LGPL) as
4  * published by the Free Software Foundation.
5  * ****** END LICENSE BLOCK ****** */
6 
7 #ifndef __FWTOOLS_STRINGKEYTYPEMAPPING_HPP__
8 #define __FWTOOLS_STRINGKEYTYPEMAPPING_HPP__
9 
10 #include <string>
11 
12 #include "fwTools/TypeMapping.hpp"
13 #include "fwTools/config.hpp"
14 
15 namespace fwTools
16 {
17 
31 // FIX UNSIGNED
32 template<> FWTOOLS_API
33 bool isMapping<unsigned char>(const std::string &key);
34 
35 template<> FWTOOLS_API
36 bool isMapping<unsigned short>(const std::string &key);
37 
38 template<> FWTOOLS_API
39 bool isMapping<unsigned int>(const std::string &key);
40 
41 template<> FWTOOLS_API
42 bool isMapping<unsigned long>(const std::string &key);
43 
44 
45 // FIXED PRECISION SIGNED
46 template<> FWTOOLS_API
47 bool isMapping<signed char>(const std::string &key);
48 
49 template<> FWTOOLS_API
50 bool isMapping<signed short>(const std::string &key);
51 
52 template<> FWTOOLS_API
53 bool isMapping<signed int>(const std::string &key);
54 
55 template<> FWTOOLS_API
56 bool isMapping<signed long>(const std::string &key);
57 
58 
59 
60 
61 // FLOATING PRECISION
62 template<> FWTOOLS_API
63 bool isMapping<float>(const std::string &key);
64 
65 template<> FWTOOLS_API
66 bool isMapping<double>(const std::string &key);
67 
68 
69 // MISC
70 template<> FWTOOLS_API
71 bool isMapping<std::string>(const std::string &key);
73 
74 } // end namespace fwTools
75 
76 #endif /*__FWTOOLS_STRINGKEYTYPEMAPPING_HPP__*/
FWTOOLS_API bool isMapping< float >(const DynamicType &key)
Template specialization for defining KeyType mapping ( here DynamicType) with their value...
FWTOOLS_API bool isMapping< unsigned char >(const DynamicType &key)
Template specialization for defining KeyType mapping ( here DynamicType) with their value...
The namespace fwTools contains several tools like UUID, factory, dispatche, stringizer, macros, helper.
FWTOOLS_API bool isMapping< signed char >(const DynamicType &key)
Template specialization for defining KeyType mapping ( here DynamicType) with their value...
FWTOOLS_API bool isMapping< unsigned int >(const DynamicType &key)
Template specialization for defining KeyType mapping ( here DynamicType) with their value...
FWTOOLS_API bool isMapping< signed long >(const DynamicType &key)
Template specialization for defining KeyType mapping ( here DynamicType) with their value...
FWTOOLS_API bool isMapping< double >(const DynamicType &key)
Template specialization for defining KeyType mapping ( here DynamicType) with their value...
FWTOOLS_API bool isMapping< signed int >(const DynamicType &key)
Template specialization for defining KeyType mapping ( here DynamicType) with their value...
FWTOOLS_API bool isMapping< signed short >(const DynamicType &key)
Template specialization for defining KeyType mapping ( here DynamicType) with their value...
FWTOOLS_API bool isMapping< unsigned long >(const DynamicType &key)
Template specialization for defining KeyType mapping ( here DynamicType) with their value...
FWTOOLS_API bool isMapping< unsigned short >(const DynamicType &key)
Template specialization for defining KeyType mapping ( here DynamicType) with their value...