fw4spl
core/fwAtoms/include/fwAtoms/registry/detail.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 __FWATOMS_REGISTRY_DETAIL_HPP__
8 #define __FWATOMS_REGISTRY_DETAIL_HPP__
9 
10 #include <string>
11 
12 #include <fwCore/macros.hpp>
13 #include <fwCore/util/FactoryRegistry.hpp>
14 
15 #include "fwAtoms/config.hpp"
16 
17 namespace fwAtoms
18 {
19 
20 class Base;
21 
22 namespace registry
23 {
24 
25 typedef std::string KeyType;
26 
27 typedef ::fwCore::util::FactoryRegistry< SPTR(::fwAtoms::Base) (), KeyType > Type;
28 
29 FWATOMS_API SPTR(Type) get();
30 
31 } // namespace registry
32 
33 } // namespace fwAtoms
34 
35 #endif /* __FWATOMS_REGISTRY_DETAIL_HPP__ */
36 
37 
#define SPTR(_cls_)
Contains fwAtomsFilter::registry details.
fwAtoms contains basic objects to represent any other kind of object
This file defines fwCore base macros.
FactoryRegistry is a class used to store factories and create instance object with these factories...