Interface for objects that need to manage services.
More...
#include <IHasServices.hpp>
|
FWSERVICES_API | IHasServices () noexcept |
| Constructor.
|
|
virtual FWSERVICES_API | ~IHasServices () noexcept |
| Destructor.
|
|
FWSERVICES_API std::shared_ptr< ::fwServices::IService > | registerService (const std::string &_implType, const std::string &_id="") |
| Register a new service linked to this service. More...
|
|
template<class T > |
std::shared_ptr< T > | registerService (const std::string &_implType, const std::string &_id="") |
| Register a new service linked to this service. More...
|
|
FWSERVICES_API void | unregisterService (const ::fwTools::fwID::IDType &_id) |
| Unregister a specific service. More...
|
|
FWSERVICES_API void | unregisterService (const ::fwServices::IService::sptr &_service) |
| Unregister a specific service. More...
|
|
FWSERVICES_API void | unregisterServices (const std::string &_implType="") |
| Unregister all services linked to this service, optionally matches only a given type of services. More...
|
|
Interface for objects that need to manage services.
Definition at line 24 of file IHasServices.hpp.
fwServices::IService::csptr fwServices::IHasServices::getRegisteredService |
( |
const ::fwTools::fwID::IDType & |
_id | ) |
const |
const IHasServices::ServiceVector & fwServices::IHasServices::getRegisteredServices |
( |
| ) |
const |
|
inline |
fwServices::IService::sptr fwServices::IHasServices::registerService |
( |
const std::string & |
_implType, |
|
|
const std::string & |
_id = "" |
|
) |
| |
|
protected |
Register a new service linked to this service.
- Parameters
-
[in] | _implType | Type of the service |
[in] | id | Optional identifier of the service |
Definition at line 86 of file IHasServices.cpp.
template<class T >
std::shared_ptr< T > fwServices::IHasServices::registerService |
( |
const std::string & |
_implType, |
|
|
const std::string & |
_id = "" |
|
) |
| |
|
protected |
Register a new service linked to this service.
- Parameters
-
[in] | _implType | Type of the service |
[in] | id | Optional identifier of the service |
Definition at line 100 of file IHasServices.hpp.
FWSERVICES_API void fwServices::IHasServices::unregisterService |
( |
const ::fwTools::fwID::IDType & |
_id | ) |
|
|
protected |
FWSERVICES_API void fwServices::IHasServices::unregisterService |
( |
const ::fwServices::IService::sptr & |
_service | ) |
|
|
protected |
Unregister a specific service.
- Parameters
-
service | Pointer to the service |
void fwServices::IHasServices::unregisterServices |
( |
const std::string & |
_implType = "" | ) |
|
|
protected |
Unregister all services linked to this service, optionally matches only a given type of services.
- Parameters
-
_implType | Optional type of the services to unregister |
Definition at line 96 of file IHasServices.cpp.
Referenced by visuVTKAdaptor::SImagesBlend::checkImageInformations(), visuVTKAdaptor::SResectionDB::stopping(), visuVTKAdaptor::SSliceFollowerCamera::stopping(), visuVTKAdaptor::SResection::stopping(), visuVTKAdaptor::SPointList::stopping(), visuVTKAdaptor::SImageSeries::stopping(), visuVTKAdaptor::SModelSeries::stopping(), visuVTKAdaptor::SNegatoOneSlice::stopping(), visuVTKAdaptor::SPlane::stopping(), visuVTKAdaptor::SReconstruction::stopping(), and visuVTKAdaptor::SNegatoMPR::stopping().
The documentation for this class was generated from the following files: