Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berry::PlatformObject Class Reference

#include <berryPlatformObject.h>

Inheritance diagram for berry::PlatformObject:
Collaboration diagram for berry::PlatformObject:

Public Types

typedef berry::PlatformObject Self
 
typedef berry::SmartPointer< SelfPointer
 
typedef berry::SmartPointer< const SelfConstPointer
 
typedef berry::WeakPointer< SelfWeakPtr
 
typedef berry::WeakPointer< const SelfConstWeakPtr
 
- Public Types inherited from berry::Object
typedef Object Self
 
typedef berry::SmartPointer< SelfPointer
 
typedef berry::SmartPointer< const SelfConstPointer
 
typedef berry::WeakPointer< SelfWeakPtr
 
typedef berry::WeakPointer< const SelfConstWeakPtr
 

Public Member Functions

 PlatformObject ()
 
ObjectGetAdapter (const QString &adapter) const override
 
- Public Member Functions inherited from berry::Object
virtual QString GetClassName () const
 
virtual Reflection::TypeInfo GetTypeInfo () const
 
virtual QList< Reflection::TypeInfoGetSuperclasses () 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
 
- Public Member Functions inherited from berry::IAdaptable
template<class A >
A * GetAdapter ()
 
virtual ~IAdaptable ()
 

Static Public Member Functions

static const char * GetStaticClassName ()
 
- Static Public Member Functions inherited from berry::Object
static const char * GetStaticClassName ()
 
static Reflection::TypeInfo GetStaticTypeInfo ()
 
static QList< Reflection::TypeInfoGetStaticSuperclasses ()
 

Additional Inherited Members

- 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
 

Detailed Description

An abstract superclass implementing the IAdaptable interface. getAdapter invocations are directed to the platform's adapter manager.

Note: In situations where it would be awkward to subclass this class, the same affect can be achieved simply by implementing the IAdaptable interface and explicitly forwarding the getAdapter request to the platform's adapater manager. The method would look like:

    public Object getAdapter(Class adapter) {
        return Platform.getAdapterManager().getAdapter(this, adapter);
    }

Clients may subclass.

See also
Platform::getAdapterManager

Definition at line 51 of file berryPlatformObject.h.

Member Typedef Documentation

Constructor & Destructor Documentation

berry::PlatformObject::PlatformObject ( )

Constructs a new platform object.

Definition at line 24 of file berryPlatformObject.cpp.

Member Function Documentation

Object * berry::PlatformObject::GetAdapter ( const QString &  adapter) const
overridevirtual

Returns an object which is an instance of the given class associated with this object. Returns null if no such object can be found.

This implementation of the method declared by IAdaptable passes the request along to the platform's adapter manager; roughly Platform.getAdapterManager().getAdapter(this, adapter). Subclasses may override this method (however, if they do so, they should invoke the method on their superclass to ensure that the Platform's adapter manager is consulted).

See also
IAdaptable::getAdapter
Platform::getAdapterManager

Implements berry::IAdaptable.

Definition at line 28 of file berryPlatformObject.cpp.

References berry::IAdapterManager::GetAdapter(), and berry::Platform::GetAdapterManager().

static const char* berry::PlatformObject::GetStaticClassName ( )
inlinestatic

Definition at line 56 of file berryPlatformObject.h.


The documentation for this class was generated from the following files: