HyperspaceExplorer 0.7.1
Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes
CustomFunctionBase< function_type > Class Template Reference

Base class for custom functions, which can be edited by the user. More...

#include <CustomFunction.h>

Inheritance diagram for CustomFunctionBase< function_type >:
Inheritance graph
[legend]
Collaboration diagram for CustomFunctionBase< function_type >:
Collaboration graph
[legend]

List of all members.

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.

Detailed Description

template<class function_type>
class CustomFunctionBase< function_type >

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

Template Parameters:
function_type

Member Function Documentation

template<class function_type>
bool CustomFunctionBase< function_type >::isValid ( ) const [inline]
Returns:
Whether loading the library succeeded
template<class function_type >
bool CustomFunctionBase< function_type >::loadFunction ( const QString &  libName,
QString  funcName = "f" 
) [protected]

try to load a DLL and the f() in it

Parameters:
libNamename of the plugin DLL file
funcNamename of the function to load
Returns:
success

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

Here is the call graph for this function:

template<class function_type >
QString CustomFunctionBase< function_type >::symbolic ( ) const
Returns:
Custom function in symbolic notation

References 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:17 for HyperspaceExplorer 0.7.1 by doxygen 1.7.4  -  Hosted bySourceForge.net Logo