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

#include <berryPlatformObject.h>

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

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 ()
 

Public Attributes

 berryObjectMacro1
 

Additional Inherited Members

- 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
 
- Static Public Member Functions inherited from berry::Object
static const char * GetStaticClassName ()
 
static Reflection::TypeInfo GetStaticTypeInfo ()
 
static QList< Reflection::TypeInfoGetStaticSuperclasses ()
 
- 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 47 of file berryPlatformObject.h.

Constructor & Destructor Documentation

◆ PlatformObject()

berry::PlatformObject::PlatformObject ( )

Constructs a new platform object.

Member Function Documentation

◆ GetAdapter()

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.

Member Data Documentation

◆ berryObjectMacro1

berry::PlatformObject::berryObjectMacro1

Definition at line 52 of file berryPlatformObject.h.


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