Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

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()). More...

bool LoadPlugins ()
 Load the plugins.


Friends

class  csPluginList


Detailed Description

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


Member Function Documentation

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.5 written by Dimitri van Heesch, ©1997-2000