ParaView
Public Member Functions | Static Public Member Functions | Protected Member Functions
vtkPVPythonInteractiveInterpretor Class Reference

interpretor for interactive shells. More...

#include <vtkPVPythonInteractiveInterpretor.h>

Inheritance diagram for vtkPVPythonInteractiveInterpretor:
Inheritance graph
[legend]
Collaboration diagram for vtkPVPythonInteractiveInterpretor:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
bool Push (const char *const code)
void ResetBuffer ()

Static Public Member Functions

static
vtkPVPythonInteractiveInterpretor
New ()
static int IsTypeOf (const char *type)
static
vtkPVPythonInteractiveInterpretor
SafeDownCast (vtkObject *o)

Protected Member Functions

 vtkPVPythonInteractiveInterpretor ()
 ~vtkPVPythonInteractiveInterpretor ()
virtual void InitializeInternal ()

Detailed Description

interpretor for interactive shells.

vtkPVPythonInteractiveInterpretor is vtkPVPythonInterpretor subclass designed to be used by interactive shells. It mimicks the behaviour of the interactive console (much like the default python shell) providing the "read-eval-print" loops. It also handles incomplete statements correctly. It uses "code" module provided by python to achieve this.

Definition at line 30 of file vtkPVPythonInteractiveInterpretor.h.


Constructor & Destructor Documentation

vtkPVPythonInteractiveInterpretor::vtkPVPythonInteractiveInterpretor ( ) [protected]
vtkPVPythonInteractiveInterpretor::~vtkPVPythonInteractiveInterpretor ( ) [protected]

Member Function Documentation

static vtkPVPythonInteractiveInterpretor* vtkPVPythonInteractiveInterpretor::New ( ) [static]

Reimplemented from vtkPVPythonInterpretor.

virtual const char* vtkPVPythonInteractiveInterpretor::GetClassName ( ) [virtual]

Reimplemented from vtkPVPythonInterpretor.

static int vtkPVPythonInteractiveInterpretor::IsTypeOf ( const char *  type) [static]

Reimplemented from vtkPVPythonInterpretor.

virtual int vtkPVPythonInteractiveInterpretor::IsA ( const char *  type) [virtual]

Reimplemented from vtkPVPythonInterpretor.

static vtkPVPythonInteractiveInterpretor* vtkPVPythonInteractiveInterpretor::SafeDownCast ( vtkObject o) [static]

Reimplemented from vtkPVPythonInterpretor.

void vtkPVPythonInteractiveInterpretor::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Reimplemented from vtkPVPythonInterpretor.

bool vtkPVPythonInteractiveInterpretor::Push ( const char *const  code)

Push a line of code. It should have have trailing newlines. It can have internal newlines. This can accept incomplete input. A command is executed only after the complete input is received. Look at python module documentation for code.InteractiveConsole.push() for further details. The return value is True if more input is required, False if the line was dealt with in some way.

void vtkPVPythonInteractiveInterpretor::ResetBuffer ( )

Clears all previously pushed unhandled input. Look at python module documentation for code.InteractiveConsole.resetbuffer() for further details.

virtual void vtkPVPythonInteractiveInterpretor::InitializeInternal ( ) [protected, virtual]

Initialize the interpretor.

Reimplemented from vtkPVPythonInterpretor.


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