frepple::utils::CommandPython Class Reference
This command executes Python code in the embedded interpreter. More...
#include <utils.h>

Public Member Functions | |
CommandPython () | |
void | execute () |
string | getCommandLine () const |
string | getFileName () const |
void | setCommandLine (const string &s) |
void | setFileName (const string &s) |
virtual | ~CommandPython () |
Static Public Member Functions | |
static void | processorXMLInstruction (const char *d) |
Static Public Attributes | |
static const MetaClass * | metadata2 |
Detailed Description
This command executes Python code in the embedded interpreter.
The interpreter can execute generic scripts, and it also has access to the frePPLe objects.
The interpreter is multi-threaded. Multiple python scripts can run in parallel. Internally Python allows only one thread at a time to execute and the interpreter switches between the active threads, i.e. a quite primitive threading model.
FrePPLe uses a single global interpreter. A global Python variable or function is thus visible across multiple invocations of the Python interpreter.
Definition at line 4075 of file utils.h.
Constructor & Destructor Documentation
frepple::utils::CommandPython::CommandPython | ( | ) | [inline, explicit] |
virtual frepple::utils::CommandPython::~CommandPython | ( | ) | [inline, virtual] |
Member Function Documentation
void frepple::utils::CommandPython::execute | ( | ) | [virtual] |
Executes the python command or source file.
Implements frepple::utils::Command.
Definition at line 54 of file pythonutils.cpp.
string frepple::utils::CommandPython::getCommandLine | ( | ) | const [inline] |
string frepple::utils::CommandPython::getFileName | ( | ) | const [inline] |
static void frepple::utils::CommandPython::processorXMLInstruction | ( | const char * | d | ) | [inline, static] |
void frepple::utils::CommandPython::setCommandLine | ( | const string & | s | ) | [inline] |
void frepple::utils::CommandPython::setFileName | ( | const string & | s | ) | [inline] |
Member Data Documentation
const MetaClass * frepple::utils::CommandPython::metadata2 [static] |
The documentation for this class was generated from the following files:
Documentation generated for frePPLe by
