HyperspaceExplorer 0.7.1
Static Public Member Functions
UI::Dialogs::PluginCreator::LoadFunctionHelper< F > Class Template Reference

Class template with a static function to simulate a function template. More...

List of all members.

Static Public Member Functions

static bool functionPresent (const QString &, QDialog *)
 Loads the dynamic library given by libName, if it exists and can be loaded.

Detailed Description

template<class F>
class UI::Dialogs::PluginCreator::LoadFunctionHelper< F >

Class template with a static function to simulate a function template.

The function functionPresent() tries to load a dynamic library containing a function f() with a variable signature.

Template Parameters:
Fthe type of function to be loaded

Member Function Documentation

template<class F >
bool UI::Dialogs::PluginCreator::LoadFunctionHelper< F >::functionPresent ( const QString &  libName,
QDialog *  parent 
) [static]

Loads the dynamic library given by libName, if it exists and can be loaded.

Then it checks whether a function named f() is present.

If so, returns true. Else, gives an error message.

Template Parameters:
FThe type of Function to be created.
Parameters:
libNamefilename for the selected DLL
parentthe Dialog which calls this function
Returns:
success

References abort(), std::cerr, and std::endl().

Here is the call graph for this function:


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends

Generated on Mon Apr 9 2012 20:25:19 for HyperspaceExplorer 0.7.1 by doxygen 1.7.4  -  Hosted bySourceForge.net Logo