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