fw4spl
core/fwCamp/src/fwCamp/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 "fwCamp/UserObject.hpp"
8 #include "fwCamp/factory/new.hpp"
9 
10 namespace fwCamp
11 {
12 namespace factory
13 {
14 
15 SPTR( ::camp::UserObject ) New( const ::fwCamp::registry::KeyType & classname, ::fwTools::Object *object )
16 {
17  return ::fwCamp::registry::get()->create(classname, object);
18 }
19 
20 } // namespace factory
21 } // namespace fwCamp
22 
23 
#define SPTR(_cls_)
Contains fwAtomsFilter::registry details.
The namespace fwTools contains several tools like UUID, factory, dispatche, stringizer, macros, helper.
Contains fwAtomsFilter::factory utilities.
All necessary for camp binding with simple types.