12 #ifndef CXREGISTEREDSERVICE_H 13 #define CXREGISTEREDSERVICE_H 15 #include "cxResourcePluginUtilitiesExport.h" 17 #include "boost/shared_ptr.hpp" 18 #include <ctkPluginActivator.h> 38 template <
class SERVICE_TYPE>
39 static RegisteredServicePtr
create(ctkPluginContext* context, QString iid)
43 template <
class SERVICE_TYPE>
44 static RegisteredServicePtr
create(ctkPluginContext* context, SERVICE_TYPE* service, QString iid)
49 explicit RegisteredService(ctkPluginContext* context, QObject* instance, QString iid);
51 template<
class SERVICE_TYPE>
52 SERVICE_TYPE*
get()
const {
return dynamic_cast<SERVICE_TYPE*
>(mService.get()); }
59 #endif // CXREGISTEREDSERVICE_H static RegisteredServicePtr create(ctkPluginContext *context, SERVICE_TYPE *service, QString iid)
boost::shared_ptr< class QObject > QObjectPtr
boost::shared_ptr< class RegisteredService > RegisteredServicePtr
ctkServiceRegistration mReference
static RegisteredServicePtr create(ctkPluginContext *context, QString iid)
Namespace for all CustusX production code.