7 #include "fwServices/op/Get.hpp" 9 #include "fwServices/IService.hpp" 18 ::fwServices::IService::sptr
get( ::fwData::Object::sptr obj, std::string serviceType )
22 ::fwServices::IService::sptr service;
23 auto services = ::fwServices::OSR::getServices( obj, serviceType );
24 OSLM_ASSERT(
"Service "<<serviceType<<
" is not unique, registered "<<services.size()<<
" times",
25 services.size() == 1);
26 return *services.begin();
31 ::fwServices::IService::sptr
get( std::string uid )
#define OSLM_ASSERT(message, cond)
work like 'assert' from 'cassert', with in addition a message logged by spylog (with FATAL loglevel) ...
Namespace fwServices is dedicated to (mimic) the dynamic affectation of methods to (pure data) object...
#define FW_DEPRECATED_MSG(message, version)
Use this macro when deprecating a function to warn the developer.