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

SLPluginDynLoader Class Reference
[Plugins system]

This class is used to load plugins shared objects. More...

#include <SLPluginDynLoader.hpp>

List of all members.

Public Member Functions

 SLPluginDynLoader ()
void loadPlugins (SLDirectory &pluginsDir) const throw (IOException, SLDirectory::IOException)
void unloadPlugin (SLPlugin *plugin) const throw (IOException)


Detailed Description

This class is used to load plugins shared objects.

Author:
Alexandre Sauve
This class loads all plugins found in the segusoland plugins directory and is capable of unloading them too.


Constructor & Destructor Documentation

SLPluginDynLoader::SLPluginDynLoader  ) 
 

The default constructor


Member Function Documentation

void SLPluginDynLoader::loadPlugins SLDirectory pluginsDir  )  const throw (IOException, SLDirectory::IOException)
 

Loads plugins shared objects into memory and register them.

Parameters:
pluginsDir is the directory where are the plugins shared objects
See also:
SLPluginDynLoader::unloadPlugin()

void SLPluginDynLoader::unloadPlugin SLPlugin plugin  )  const throw (IOException)
 

Unload a shared object.

See also:
SLPluginDynLoader::loadPlugins()
Parameters:
plugin has been obtained within loadPlugins() with plugin_new()
Warning:
the new operator is called from the "shared object" where the plugin come from. So the delete operator must be called in the shared object too. (it's a restriction of C++).
unlike its great brother SLPluginDynLoader::loadPlugins(), this one delete only on plugin at a time.


The documentation for this class was generated from the following file:
Generated on Mon Apr 19 01:03:37 2004 for segusoLand by doxygen 1.3.6-20040222