Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

OmgModellerPluginRegistry Class Reference
[Library]

#include <omgmodellerpluginregistry.h>

Inheritance diagram for OmgModellerPluginRegistry:

Inheritance graph
[legend]
Collaboration diagram for OmgModellerPluginRegistry:

Collaboration graph
[legend]
List of all members.

Detailed Description

This class keeps a list of available modeller plugins and can return a pointer to one on demand.

Definition at line 32 of file omgmodellerpluginregistry.h.

Public Member Functions

const int count ()
OmgModellerPluginInterfacegetPlugin (QString thePluginName="")
QStringList names ()

Static Public Member Functions

static OmgModellerPluginRegistryinstance ()
 Returns the instance pointer, creating the object on the first call.

Protected Member Functions

 OmgModellerPluginRegistry (QObject *parent=0)
 protected constructor

Private Attributes

QMap< QString, OmgModellerPluginInterface * > mPluginsMap

Static Private Attributes

static OmgModellerPluginRegistrympInstance = 0


Constructor & Destructor Documentation

OmgModellerPluginRegistry::OmgModellerPluginRegistry QObject parent = 0  )  [protected]
 

protected constructor

Definition at line 45 of file omgmodellerpluginregistry.cpp.

References OmgModellerPluginInterface::getName(), mPluginsMap, and Omgui::pluginDirPath().

Referenced by instance().

Here is the call graph for this function:


Member Function Documentation

const int OmgModellerPluginRegistry::count  ) 
 

Return the number of registered modeller plugins.

Definition at line 92 of file omgmodellerpluginregistry.cpp.

References mPluginsMap.

OmgModellerPluginInterface * OmgModellerPluginRegistry::getPlugin QString  thePluginName = ""  ) 
 

Retrieve a pointer to a loaded plugin by id The client class should never delete the pointer returned by this function.

Parameters:
theName of the plugin to return. The parameter is optional. If ommitted the default plugin will be returned.
Returns:
A OmgModellerPluginInterface instance.

Definition at line 97 of file omgmodellerpluginregistry.cpp.

References mPluginsMap.

OmgModellerPluginRegistry * OmgModellerPluginRegistry::instance  )  [static]
 

Returns the instance pointer, creating the object on the first call.

Definition at line 32 of file omgmodellerpluginregistry.cpp.

References mpInstance, and OmgModellerPluginRegistry().

Referenced by OmgLayerSelector::buildTree(), OmgExperimentDesigner::getExperiment(), OmgAlgorithmSet::getFromActivePlugin(), OmgAbout::OmgAbout(), OmgOptions::OmgOptions(), OmgLocalitiesModelTest::rowsAndColumns(), OmgModelTest::run(), OmgExperimentTest::run(), and OmgMainWindow::runExperiment().

Here is the call graph for this function:

QStringList OmgModellerPluginRegistry::names  ) 
 

Get the available plugins names.

Returns:
QStringList containing all the registered plugins names.

Definition at line 112 of file omgmodellerpluginregistry.cpp.

References mPluginsMap.


Member Data Documentation

OmgModellerPluginRegistry * OmgModellerPluginRegistry::mpInstance = 0 [static, private]
 

Definition at line 31 of file omgmodellerpluginregistry.cpp.

Referenced by instance().

QMap<QString,OmgModellerPluginInterface*> OmgModellerPluginRegistry::mPluginsMap [private]
 

Definition at line 70 of file omgmodellerpluginregistry.h.

Referenced by count(), getPlugin(), names(), and OmgModellerPluginRegistry().


The documentation for this class was generated from the following files:
Generated on Mon Apr 28 15:13:49 2008 for openModellerDesktop by  doxygen 1.4.1-20050210