fw4spl
core/fwMemory/include/fwMemory/policy/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 __FWMEMORY_POLICY_REGISTRY_DETAIL_HPP__
8 #define __FWMEMORY_POLICY_REGISTRY_DETAIL_HPP__
9 
10 #include <string>
11 
12 #include <fwCore/macros.hpp>
13 #include <fwCore/util/FactoryRegistry.hpp>
14 
15 #include "fwMemory/config.hpp"
16 
17 namespace fwMemory
18 {
19 
20 class IPolicy;
21 
22 namespace policy
23 {
24 namespace registry
25 {
26 
27 typedef std::string KeyType;
28 
29 typedef ::fwCore::util::FactoryRegistry< SPTR(::fwMemory::IPolicy) (), KeyType > Type;
30 
31 FWMEMORY_API SPTR(Type) get();
32 
33 } // namespace registry
34 } // namespace policy
35 } // namespace fwMemory
36 
37 #endif /* __FWMEMORY_POLICY_REGISTRY_DETAIL_HPP__ */
38 
39 
#define SPTR(_cls_)
Contains fwAtomsFilter::registry details.
The namespace fwMemory contains tools to manage memory. Use for dump.
Definition: SReader.hpp:20
This file defines fwCore base macros.