7 #ifndef __FWATOMS_FACTORY_NEW_HPP__ 8 #define __FWATOMS_FACTORY_NEW_HPP__ 10 #include "fwAtoms/config.hpp" 11 #include "fwAtoms/registry/detail.hpp" 23 template<
class CLASSNAME >
SPTR( CLASSNAME ) New();
31 template<
typename CLASSNAME>
32 friend SPTR( CLASSNAME ) fwAtoms::factory::New();
39 FWATOMS_API
SPTR( ::
fwAtoms::Base ) New( const ::fwAtoms::registry::KeyType & classname );
41 template<
class CLASSNAME >
SPTR( CLASSNAME ) New()
43 SPTR(CLASSNAME) obj = std::make_shared< CLASSNAME >(
Key() );
fwAtoms contains basic objects to represent any other kind of object
Contains fwAtomsFilter::factory utilities.
Key class used to restrict access to Object construction. See http://www.drdobbs.com/184402053.
Base class for all Atom classes.