fw4spl
TypeInfoKeyTypeMapping.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_TYPEINFOKEYTYPEMAPPING_HPP__
8 #define __FWTOOLS_TYPEINFOKEYTYPEMAPPING_HPP__
9 
10 #include <string>
11 #include <typeinfo>
12 
13 #include "fwTools/TypeMapping.hpp"
14 #include "fwTools/config.hpp"
15 
16 namespace fwTools
17 {
18 
32 // FIX UNSIGNED
33 template<> FWTOOLS_API
34 bool isMapping<unsigned char>(const std::type_info &key);
35 
36 template<> FWTOOLS_API
37 bool isMapping<unsigned short>(const std::type_info &key);
38 
39 template<> FWTOOLS_API
40 bool isMapping<unsigned int>(const std::type_info &key);
41 
42 template<> FWTOOLS_API
43 bool isMapping<unsigned long>(const std::type_info &key);
44 
45 
46 // FIXED PRECISION SIGNED
47 template<> FWTOOLS_API
48 bool isMapping<signed char>(const std::type_info &key);
49 
50 template<> FWTOOLS_API
51 bool isMapping<signed short>(const std::type_info &key);
52 
53 template<> FWTOOLS_API
54 bool isMapping<signed int>(const std::type_info &key);
55 
56 template<> FWTOOLS_API
57 bool isMapping<signed long>(const std::type_info &key);
58 
59 
60 
61 
62 // FLOATING PRECISION
63 template<> FWTOOLS_API
64 bool isMapping<float>(const std::type_info &key);
65 
66 template<> FWTOOLS_API
67 bool isMapping<double>(const std::type_info &key);
68 
69 
70 // MISC
71 template<> FWTOOLS_API
72 bool isMapping<std::string>(const std::type_info &key);
74 
75 } // namespace fwTools
76 
77 #endif /*__FWTOOLS_TYPEINFOKEYTYPEMAPPING_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...