Medical Imaging Interaction Toolkit  2023.12.99-77685e7b
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.

Definition at line 34 of file berryContributorFactory.h.

Member Function Documentation

◆ CreateContributor()

static SmartPointer<IContributor> 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

◆ Resolve()

static 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

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