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

#include <berryContributorFactory.h>

Static Public Member Functions

static SmartPointer< IContributorCreateContributor (const QSharedPointer< ctkPlugin > &contributor)
 
static QSharedPointer< ctkPlugin > Resolve (const SmartPointer< IContributor > &contributor)
 

Detailed Description

The contributor factory creates new registry contributors for use in the registry.

This class can not be extended or instantiated by clients.

This class is not intended to be instantiated by clients. This class is not intended to be subclassed by clients.

Definition at line 40 of file berryContributorFactory.h.

Member Function Documentation

IContributor::Pointer berry::ContributorFactory::CreateContributor ( const QSharedPointer< ctkPlugin > &  contributor)
static

Creates registry contributor object based on a Plugin. The plugin must not be null.

Parameters
contributorplugin associated with the contribution
Returns
new registry contributor based on the Plugin

Definition at line 26 of file berryContributorFactory.cpp.

QSharedPointer< ctkPlugin > berry::ContributorFactory::Resolve ( const SmartPointer< IContributor > &  contributor)
static

Returns the CTK plugin used to define this contributor.

The method may return null if the contributor is not based on a plugin, if the plugin can't be found, or if the plugin is presently unresolved or uninstalled.

Parameters
contributorplugin-based registry contributor
Returns
the actual CTK plugin associated with this contributor

Definition at line 47 of file berryContributorFactory.cpp.

References berry::SmartPointer< TObjectType >::Cast(), and berry::SmartPointer< TObjectType >::IsNull().


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