fw4spl
MapValueMapper.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2017.
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 __FWCAMP_CAMP_MAPVALUEMAPPER_HPP__
8 #define __FWCAMP_CAMP_MAPVALUEMAPPER_HPP__
9 
10 #include "fwCamp/camp/customtype.hpp"
11 #include "fwCamp/camp/traits.hpp"
12 
13 #include <camp/valuemapper.hpp>
14 
15 namespace camp_ext
16 {
17 
18 template <typename T>
19 struct ValueMapper<T, typename boost::enable_if_c<camp::isMapping<T>::value>::type>
20 {
21  static const int type = camp::mappingType;
22 };
23 
24 } // namespace camp_ext
25 
26 #endif /* __FWCAMP_CAMP_MAPVALUEMAPPER_HPP__ */