7 #ifndef __FWSERVICES_SERVICEFACTORYREGISTRAR_HPP__ 8 #define __FWSERVICES_SERVICEFACTORYREGISTRAR_HPP__ 10 #include "fwServices/factory/new.hpp" 11 #include "fwServices/registry/ServiceFactory.hpp" 20 template<
class SRV_IMPL>
28 factory->addServiceFactory( &::fwServices::factory::New< SRV_IMPL >, simpl, stype);
34 factory->addServiceFactory( &::fwServices::factory::New< SRV_IMPL >, simpl, stype);
35 factory->addObjectFactory( simpl, oimpl);
49 factory->addObjectFactory( simpl, oimpl);
56 #endif // __FWSERVICES_SERVICEFACTORYREGISTRAR_HPP__ Namespace fwServices is dedicated to (mimic) the dynamic affectation of methods to (pure data) object...
Contains fwAtomsFilter::factory utilities.
Helper for registering a service Creates internally the service factory and adds it to the FactoryReg...
static FWSERVICES_API ServiceFactory::sptr getDefault()
Return the unique Instance, create it if required at first access.
Helper for associating an object to a service implementation.