Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <berryIServiceLocator.h>
Public Member Functions | |
berryObjectMacro (berry::IServiceLocator, Object)~IServiceLocator() | |
template<class S > | |
S * | GetService () |
template<class S > | |
bool | HasService () const |
virtual Object * | GetService (const QString &api)=0 |
virtual bool | HasService (const QString &api) const =0 |
Public Member Functions inherited from berry::Object | |
virtual QString | GetClassName () const |
virtual Reflection::TypeInfo | GetTypeInfo () const |
virtual QList< Reflection::TypeInfo > | GetSuperclasses () const |
virtual void | Delete () |
QDebug | Print (QDebug os, Indent Indent=0) const |
virtual QString | ToString () const |
virtual uint | HashCode () const |
virtual bool | operator< (const Object *) const |
void | Register () const |
void | UnRegister (bool del=true) const |
int | GetReferenceCount () const |
void | SetReferenceCount (int) |
void | AddDestroyListener (const MessageAbstractDelegate<> &delegate) const |
void | RemoveDestroyListener (const MessageAbstractDelegate<> &delegate) const |
virtual bool | operator== (const Object *) const |
Additional Inherited Members | |
Public Types inherited from berry::Object | |
typedef Object | Self |
typedef berry::SmartPointer< Self > | Pointer |
typedef berry::SmartPointer< const Self > | ConstPointer |
typedef berry::WeakPointer< Self > | WeakPtr |
typedef berry::WeakPointer< const Self > | ConstWeakPtr |
Static Public Member Functions inherited from berry::Object | |
static const char * | GetStaticClassName () |
static Reflection::TypeInfo | GetStaticTypeInfo () |
static QList< Reflection::TypeInfo > | GetStaticSuperclasses () |
Protected Member Functions inherited from berry::Object | |
Object () | |
virtual | ~Object () |
virtual QDebug | PrintSelf (QDebug os, Indent indent) const |
virtual QDebug | PrintHeader (QDebug os, Indent indent) const |
virtual QDebug | PrintTrailer (QDebug os, Indent indent) const |
Protected Attributes inherited from berry::Object | |
QAtomicInt | m_ReferenceCount |
QMutex | m_ReferenceCountLock |
A component with which one or more services are registered. The services can be retrieved from this locator using the service type. For example:
IHandlerService* service = workbenchWindow->GetService<IHandlerService>();
This interface is not to be implemented or extended by clients.
Definition at line 47 of file berryIServiceLocator.h.
berry::IServiceLocator::berryObjectMacro | ( | berry::IServiceLocator | , |
Object | |||
) |
|
inline |
Retrieves the service corresponding to the given API.
S | This is the interface that the service implements. Must not be null . |
null
if no such service could be found. Definition at line 64 of file berryIServiceLocator.h.
References BERRY_WARN, and berry::Object::GetClassName().
|
pure virtual |
|
inline |
Whether this service exists within the scope of this service locator. This does not include looking for the service within the scope of the parents. This method can be used to determine whether a particular service supports nesting in this scope.
S | This is the interface that the service implements. Must not be null . |
true
iff the service locator can find a service for the given interface; false
otherwise. Definition at line 96 of file berryIServiceLocator.h.
|
pure virtual |