CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

csPluginLoader Class Reference

This utility class helps to load plugins based on request, config file, and commandline. More...

#include <plugldr.h>

List of all members.

Public Methods

 csPluginLoader (iObjectRegistry *object_reg)
 Initialize.

virtual ~csPluginLoader ()
 Deinitialize.

void RequestPlugin (const char *pluginName, const char *tagName)
 A shortcut for requesting to load a plugin (before LoadPlugins()).

bool LoadPlugins ()
 Load the plugins.


Detailed Description

This utility class helps to load plugins based on request, config file, and commandline.

Definition at line 56 of file plugldr.h.


Constructor & Destructor Documentation

csPluginLoader::csPluginLoader iObjectRegistry   object_reg
 

Initialize.

virtual csPluginLoader::~csPluginLoader   [virtual]
 

Deinitialize.


Member Function Documentation

bool csPluginLoader::LoadPlugins  
 

Load the plugins.

void csPluginLoader::RequestPlugin const char *    pluginName,
const char *    tagName
 

A shortcut for requesting to load a plugin (before LoadPlugins()).

If you want this class to register the plugin as a default for some interface then you should use the interface name as the tag name (i.e. 'iGraphics3D'). Note that plugins requested with some tag here get lowest precendence. The commandline has highest priority followed by the config file. If after this no plugin with the given tag exists then RequestPlugin() will work.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.18