version 3.3

VRS::PlugIn Class Reference

This class can be used to load plugins. More...

#include <vrs/io/plugin.h>

List of all members.

Static Public Member Functions

static bool isLoaded (const std::string &plugInName)
static bool load (const std::string &plugInFileNameWithPath, const std::string &initFunctionName=std::string())
static std::string fullName (const std::string &plugInName="")
static bool AddDllSearchDirectory (const std::string &directory)


Detailed Description

This class can be used to load plugins.

Member Function Documentation

static bool VRS::PlugIn::isLoaded ( const std::string &  plugInName  )  [static]

Returns if the given plugin has alreay been loaded, (e.g. "vrs_qt", or "vrs_qt.dll"). Use only the plugin filename without a path.

static bool VRS::PlugIn::load ( const std::string &  plugInFileNameWithPath,
const std::string &  initFunctionName = std::string() 
) [static]

Tries to load the given plugin and returns true on success.

static std::string VRS::PlugIn::fullName ( const std::string &  plugInName = ""  )  [static]

Returns the full filename to the given (loaded) plugin or "" if the filename cannot be determined. If "" is used as plugin name, the full filename for the running application is returned.

static bool VRS::PlugIn::AddDllSearchDirectory ( const std::string &  directory  )  [static]

Calls kernel function SetDllDirectory if available (on Windows XP SP1 and later) otherwise does nothing and returns false.


The documentation for this class was generated from the following file:

Generated on Tue May 22 06:00:22 2012 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact