Stimfit
0.13.15
|
User-defined Python extension. More...
#include <stf.h>
Public Member Functions | |
Extension (const std::string &menuEntry_, void *pyFunc_, const std::string &description_, bool requiresFile_) | |
Constructor. | |
~Extension () | |
Destructor. | |
Public Attributes | |
int | id |
std::string | menuEntry |
void * | pyFunc |
std::string | description |
bool | requiresFile |
Static Public Attributes | |
static int | n_extensions |
User-defined Python extension.
Class used for extending Stimfit's functionality: The client supplies a new menu entry and a Python function that will be called upon selection of that entry.
stf::Extension::Extension | ( | const std::string & | menuEntry_, |
void * | pyFunc_, | ||
const std::string & | description_, | ||
bool | requiresFile_ | ||
) | [inline] |
Constructor.
menuEntry_ | Menu entry string for this extension. |
pyFunc_ | Python function to be called. |
description_ | Description for this function. |
requiresFile_ | Whether a file needs to be open for this function to work |
Definition at line 272 of file stf.h.
References n_extensions.
std::string stf::Extension::description |
std::string stf::Extension::menuEntry |
int stf::Extension::n_extensions [static] |
Static extension counter. Initialised in extensions/extensions.cpp.
Definition at line 285 of file stf.h.
Referenced by Extension().
void* stf::Extension::pyFunc |