fw4spl
core/fwActivities/include/fwActivities/validator/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 __FWACTIVITIES_VALIDATOR_REGISTRY_MACROS_HPP__
8 #define __FWACTIVITIES_VALIDATOR_REGISTRY_MACROS_HPP__
9 
10 #include <boost/preprocessor/cat.hpp>
11 
12 #include "fwActivities/IValidator.hpp"
13 #include "fwActivities/validator/registry/detail.hpp"
14 
15 namespace fwActivities
16 {
17 namespace validator
18 {
19 namespace registry
20 {
21 
22 #define fwActivitiesValidatorRegisterMacro( ValidatorClassname, ValidatorFunctorKey ) \
23  static ::fwActivities::IValidator::Registrar< ValidatorClassname > \
24  BOOST_PP_CAT( s__factory__record__, __LINE__) ( ValidatorFunctorKey );
25 
26 } // end namespace registry
27 } // end namespace validator
28 } // end namespace fwActivities
29 
30 #endif /*__FWACTIVITIES_VALIDATOR_REGISTRY_MACROS_HPP__*/
Contains fwAtomsFilter::registry details.
Namespace containing activities data and builder.