fw4spl
core/fwAtomConversion/include/fwAtomConversion/mapper/registry/macros.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 __FWATOMCONVERSION_MAPPER_REGISTRY_MACROS_HPP__
8 #define __FWATOMCONVERSION_MAPPER_REGISTRY_MACROS_HPP__
9 
10 #include <boost/preprocessor/stringize.hpp>
11 #include <boost/preprocessor/cat.hpp>
12 
13 #include "fwAtomConversion/mapper/Base.hpp"
14 #include "fwAtomConversion/mapper/registry/detail.hpp"
15 
16 namespace fwAtomConversion
17 {
18 namespace mapper
19 {
20 namespace registry
21 {
22 
23 #define fwAtomConversionRegisterMacro( classname, functorKey ) \
24  static ::fwAtomConversion::mapper::Base::Registrar< classname > \
25  BOOST_PP_CAT( s__factory__record__, __LINE__) ( BOOST_PP_STRINGIZE(functorKey) );
26 
27 } // end namespace registry
28 } // end namespace mapper
29 } // end namespace fwAtomConversion
30 
31 #endif /*__FWATOMCONVERSION_MAPPER_REGISTRY_MACROS_HPP__*/
Contains fwAtomsFilter::registry details.
This namespace contains the necessary class for fwData <-> fwAtoms conversion.