HyperspaceExplorer 0.7.1
|
Base class for custom functions, which can be edited by the user. More...
#include <CustomFunction.h>
Public Member Functions | |
~CustomFunctionBase () | |
CustomFunction destructor, closes DLL if necessary. | |
QString | symbolic () const |
bool | isValid () const |
Protected Member Functions | |
bool | loadFunction (const QString &, QString="f") |
void | setValid () |
Signify success in loading the function. | |
void | setInvalid () |
Signify failure in loading the function. | |
Protected Attributes | |
function_type * | func |
The function that is called. | |
Private Attributes | |
void * | handle |
Temporary function handle returned by dlopen() | |
bool | valid |
Whether loading the library succeeded. |
Base class for custom functions, which can be edited by the user.
CustomFunctionBase contains the functions common to all descendants, if necessary as a template to cater for the varying function types of the different implementations
function_type |
bool CustomFunctionBase< function_type >::isValid | ( | ) | const [inline] |
bool CustomFunctionBase< function_type >::loadFunction | ( | const QString & | libName, |
QString | funcName = "f" |
||
) | [protected] |
try to load a DLL and the f() in it
libName | name of the plugin DLL file |
funcName | name of the function to load |
References std::cerr, and std::endl().
QString CustomFunctionBase< function_type >::symbolic | ( | ) | const |
References std::cerr, and std::endl().