Back to index

salome-gui  6.5.0
Classes | Functions | Variables
Plot2d_AnalyticalParser.cxx File Reference
#include "Plot2d_AnalyticalParser.h"
#include <structmember.h>

Go to the source code of this file.


struct  PyStdOut


static void PyStdOut_dealloc (PyStdOut *self)
static PyObject * PyStdOut_write (PyStdOut *self, PyObject *args)
PyObject * newPyStdOut (std::string &out)


static PyMethodDef PyStdOut_methods []
static PyMemberDef PyStdOut_memberlist []
static PyTypeObject PyStdOut_Type

Class Documentation

struct PyStdOut

Definition at line 32 of file Plot2d_AnalyticalParser.cxx.

Collaboration diagram for PyStdOut:
Class Members
PyOutChanged * _cb
void * _data
bool _iscerr
string * out
PyObject_HEAD int softspace

Function Documentation

PyObject* newPyStdOut ( std::string &  out)

Definition at line 119 of file Plot2d_AnalyticalParser.cxx.

  PyStdOut *self;
  self = PyObject_New(PyStdOut, &PyStdOut_Type);
  if (self == NULL)
    return NULL;
  self->softspace = 0;
  return (PyObject*)self;
static void PyStdOut_dealloc ( PyStdOut self) [static]

Definition at line 39 of file Plot2d_AnalyticalParser.cxx.

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

Definition at line 45 of file Plot2d_AnalyticalParser.cxx.

  char *c;
  int l;
  if (!PyArg_ParseTuple(args, "t#:write",&c, &l))
    return NULL;

  //std::cerr << c ;

  return Py_None;

Variable Documentation

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"},

Definition at line 65 of file Plot2d_AnalyticalParser.cxx.

PyMethodDef PyStdOut_methods[] [static]
Initial value:
  {"write",  (PyCFunction)PyStdOut_write,  METH_VARARGS,
    PyDoc_STR("write(string) -> None")},
  {NULL,    NULL}   

Definition at line 59 of file Plot2d_AnalyticalParser.cxx.

PyTypeObject PyStdOut_Type [static]

Definition at line 71 of file Plot2d_AnalyticalParser.cxx.