7 #ifndef __FWDATA_FACTORY_NEW_HPP__ 8 #define __FWDATA_FACTORY_NEW_HPP__ 10 #include "fwData/config.hpp" 11 #include "fwData/registry/detail.hpp" 23 template<
class CLASSNAME >
SPTR( CLASSNAME ) New();
32 template<
typename CLASSNAME>
33 friend SPTR( CLASSNAME ) fwData::factory::New();
40 FWDATA_API
SPTR( ::
fwData::Object ) New( const ::fwData::registry::KeyType & classname );
42 template<
class CLASSNAME >
SPTR( CLASSNAME ) New()
44 SPTR(CLASSNAME) obj = std::make_shared< CLASSNAME >(
Key() );
Key class used to restrict access to Object construction. See http://www.drdobbs.com/184402053.
Contains fwAtomsFilter::factory utilities.
Base class for each data object.
Contains the representation of the data objects used in the framework.