7 #ifndef __FWSERVICES_IHASSERVICES_HPP__ 8 #define __FWSERVICES_IHASSERVICES_HPP__ 10 #include "fwServices/config.hpp" 11 #include <fwServices/op/Add.hpp> 28 typedef std::vector < WPTR(::fwServices::IService) > ServiceVector;
34 const ServiceVector& getRegisteredServices()
const;
56 const std::string& _id =
"" );
64 SPTR(T) registerService(
const std::string& _implType,
const std::string& _id =
"" );
70 FWSERVICES_API
void unregisterService(const ::fwTools::fwID::IDType& _id);
76 FWSERVICES_API
void unregisterService(const ::fwServices::IService::sptr& _service);
82 FWSERVICES_API
void unregisterServices(
const std::string& _implType =
"");
87 ServiceVector m_subServices;
102 auto srv = ::fwServices::add<T>(_implType, _id);
103 m_subServices.push_back(srv);
Base class for all services.
Interface for objects that need to manage services.
Namespace fwServices is dedicated to (mimic) the dynamic affectation of methods to (pure data) object...
This file defines fwCore base macros.
const ServiceVector & getRegisteredServices() const
Get all subservices linked to this service.