MIRA
Public Member Functions | List of all members
IAdaptable Class Referenceabstract

An interface for an adaptable object. More...

#include <rcp/Adaptable.h>

Inheritance diagram for IAdaptable:
Inheritance graph
[legend]

Public Member Functions

virtual ~IAdaptable ()
 
virtual ObjectgetAdapter (const Class &adapter)=0
 Returns an object which is an instance of the given class associated with this object. More...
 

Detailed Description

An interface for an adaptable object.

Adaptable objects can be dynamically extended to provide different interfaces (or "adapters"). Adapters are created by adapter factories. (Docu taken from Eclipse Platform SDK)

Constructor & Destructor Documentation

◆ ~IAdaptable()

virtual ~IAdaptable ( )
inlinevirtual

Member Function Documentation

◆ getAdapter()

virtual Object* getAdapter ( const Class adapter)
pure virtual

Returns an object which is an instance of the given class associated with this object.

Returns nullptr if no such object can be found. The implementation if IAdaptable is responsible for destroying the instance of the created object.

Implemented in VisualizationView, and WorkbenchPart.


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