Version: 6.3.1
Defines | Functions | Variables

src/PyInterp/PyInterp_Interp.cxx File Reference

#include "PyInterp_Interp.h"
#include <pythread.h>
#include <cStringIO.h>
#include <structmember.h>
#include <string>
#include <vector>
#include <map>
#include <iostream>
Include dependency graph for PyInterp_Interp.cxx:

Defines

#define TOP_HISTORY_PY   "--- top of history ---"
#define BEGIN_HISTORY_PY   "--- begin of history ---"
#define PyStdOut_Check(v)   ((v)->ob_type == &PyStdOut_Type)

Functions

static void PyStdOut_dealloc (PyStdOut *self)
static PyObject * PyStdOut_write (PyStdOut *self, PyObject *args)
static PyObject * PyStdOut_flush (PyStdOut *self)
static PyStdOutnewPyStdOut (bool iscerr)
static int compile_command (const char *command, PyObject *context)
 Compile Python command and evaluate it in the python dictionary context if possible.

Variables

std::map< long, PyThreadState * > currentThreadMap
static PyMethodDef PyStdOut_methods []
static PyMemberDef PyStdOut_memberlist []
static PyTypeObject PyStdOut_Type

Define Documentation

#define TOP_HISTORY_PY   "--- top of history ---"
#define BEGIN_HISTORY_PY   "--- begin of history ---"
#define PyStdOut_Check (   v)    ((v)->ob_type == &PyStdOut_Type)

Function Documentation

static void PyStdOut_dealloc ( PyStdOut self) [static]
static PyObject* PyStdOut_write ( PyStdOut self,
PyObject *  args 
) [static]

References test_table.c, and test_table.l.

static PyObject* PyStdOut_flush ( PyStdOut self) [static]
static PyStdOut* newPyStdOut ( bool  iscerr) [static]
static int compile_command ( const char *  command,
PyObject *  context 
) [static]
Parameters:
commandPython command string
contextPython context (dictionary)
Returns:
-1 on fatal error, 1 if command is incomplete and 0 if command is executed successfully

Variable Documentation

std::map<long,PyThreadState*> currentThreadMap
PyMethodDef PyStdOut_methods[] [static]
Initial value:
 {
  {"write",  (PyCFunction)PyStdOut_write,  METH_VARARGS, PyDoc_STR("write(string) -> None")},
  {"flush",  (PyCFunction)PyStdOut_flush,  METH_NOARGS,  PyDoc_STR("flush() -> None")},
  {NULL,    NULL}   
}
PyMemberDef PyStdOut_memberlist[] [static]
Initial value:
 {
  {(char*)"softspace", T_INT,  offsetof(PyStdOut, softspace), 0,
   (char*)"flag indicating that a space needs to be printed; used by print"},
  {NULL} 
}
PyTypeObject PyStdOut_Type [static]
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS