Medical Imaging Interaction Toolkit  2024.12.99-d991a09f
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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: