Stimfit 0.12.7
Public Member Functions | Public Attributes | Static Public Attributes
stf::Extension Struct Reference

User-defined Python extension. More...

#include <stf.h>

Collaboration diagram for stf::Extension:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

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.


Constructor & Destructor Documentation

stf::Extension::Extension ( const std::string &  menuEntry_,
void *  pyFunc_,
const std::string &  description_,
bool  requiresFile_ 
) [inline]

Constructor.

Parameters:
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

References n_extensions.


Member Data Documentation

Description for this function.

The extension id; set automatically upon construction, so don't touch.

Menu entry string for this extension.

Static extension counter. Initialised in extensions/extensions.cpp.

Referenced by Extension().

Python function to be called.

Whether a file needs to be open for this function to work


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