fw4spl
core/fwCamp/include/fwCamp/registry/detail.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2016.
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_REGISTRY_DETAIL_HPP__
8 #define __FWCAMP_REGISTRY_DETAIL_HPP__
9 
10 #include <string>
11 
12 #include <fwCore/macros.hpp>
13 #include <fwCore/util/FactoryRegistry.hpp>
14 
15 #include "fwCamp/config.hpp"
16 
17 namespace camp
18 {
19 class UserObject;
20 }
21 namespace fwTools
22 {
23 class Object;
24 }
25 
26 namespace fwCamp
27 {
28 namespace registry
29 {
30 
31 typedef std::string KeyType;
32 
33 typedef ::fwCore::util::FactoryRegistry< SPTR(::camp::UserObject)(::fwTools::Object*), KeyType > Type;
34 
35 FWCAMP_API SPTR(Type) get();
36 
37 } // namespace registry
38 } // namespace fwCamp
39 
40 #endif /* __FWCAMP_REGISTRY_DETAIL_HPP__ */
41 
42 
#define SPTR(_cls_)
Contains fwAtomsFilter::registry details.
The namespace fwTools contains several tools like UUID, factory, dispatche, stringizer, macros, helper.
Define Base class for FW4SPL objects and services.
This file defines fwCore base macros.
Class describing an elementary C++ type aka unsigned char, signed char, .... int, float...
Definition: Type.hpp:32
All necessary for camp binding with simple types.