fw4spl
core/fwMemory/src/fwMemory/policy/factory/new.cpp
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 #include "fwMemory/IPolicy.hpp"
8 #include "fwMemory/policy/factory/new.hpp"
9 #include "fwMemory/policy/registry/detail.hpp"
10 
11 
12 namespace fwMemory
13 {
14 namespace policy
15 {
16 namespace factory
17 {
18 
19 ::fwMemory::IPolicy::sptr New( const ::fwMemory::policy::registry::KeyType & classname )
20 {
21  return ::fwMemory::policy::registry::get()->create(classname);
22 }
23 
24 } // namespace factory
25 } // namespace policy
26 } // namespace fwMemory
27 
28 
The namespace fwMemory contains tools to manage memory. Use for dump.
Definition: SReader.hpp:20
Contains fwAtomsFilter::factory utilities.