Tulip Plugins
Classes | Defines | Functions | Variables
ConsoleOutputModule.h File Reference
#include "PythonShellWidget.h"
#include "ConsoleOutputHandler.h"
#include <iostream>
Include dependency graph for ConsoleOutputModule.h:
This graph shows which files directly or indirectly include this file:

Classes

struct  scriptengine_ConsoleOutput

Defines

#define CONSOLEOUTPUTMODULE_H_
#define T_BOOL   T_INT

Functions

static void scriptengine_ConsoleOutput_dealloc (scriptengine_ConsoleOutput *self)
static PyObject * scriptengine_ConsoleOutput_new (PyTypeObject *type, PyObject *, PyObject *)
static int scriptengine_ConsoleOutput_init (scriptengine_ConsoleOutput *self, PyObject *args, PyObject *)
static PyObject * scriptengine_ConsoleOutput_write (PyObject *self, PyObject *o)
static PyObject * scriptengine_ConsoleOutput_enableConsoleOutput (PyObject *self, PyObject *o)
void initscriptengine (void)

Variables

static ConsoleOutputHandler * consoleOuputHandler = NULL
static ConsoleOutputEmitter * consoleOuputEmitter = NULL
static PythonShellWidget * shellWidget = NULL
static std::string consoleOuputString = ""
static bool outputActivated = true
static PyMemberDef scriptengine_ConsoleOutput_members []
static PyMethodDef scriptengine_ConsoleOutput_methods []
static PyTypeObject scriptengine_ConsoleOutputType

Define Documentation

#define CONSOLEOUTPUTMODULE_H_

This file is part of Tulip (www.tulip-software.org)

Authors: David Auber and the Tulip development Team from LaBRI, University of Bordeaux 1 and Inria Bordeaux - Sud Ouest

Tulip is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

Tulip is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

#define T_BOOL   T_INT

Function Documentation

void initscriptengine ( void  )
static void scriptengine_ConsoleOutput_dealloc ( scriptengine_ConsoleOutput *  self) [static]
static PyObject* scriptengine_ConsoleOutput_enableConsoleOutput ( PyObject *  self,
PyObject *  o 
) [static]
static int scriptengine_ConsoleOutput_init ( scriptengine_ConsoleOutput *  self,
PyObject *  args,
PyObject *   
) [static]
static PyObject* scriptengine_ConsoleOutput_new ( PyTypeObject *  type,
PyObject *  ,
PyObject *   
) [static]
static PyObject* scriptengine_ConsoleOutput_write ( PyObject *  self,
PyObject *  o 
) [static]

Variable Documentation

std::string consoleOuputString = "" [static]
bool outputActivated = true [static]
PyMemberDef scriptengine_ConsoleOutput_members[] [static]
Initial value:
 {
            {const_cast<char*>("stderrflag"), T_BOOL, offsetof(scriptengine_ConsoleOutput, stderrflag), 0, const_cast<char *>("flag for stderrflag")},
            {const_cast<char*>("writeToConsole"), T_BOOL, offsetof(scriptengine_ConsoleOutput, writeToConsole), 0, const_cast<char *>("flag for enabling/disabling console output")},
            {NULL}  
}
PyMethodDef scriptengine_ConsoleOutput_methods[] [static]
Initial value:
 {
            {"write", (PyCFunction) scriptengine_ConsoleOutput_write, METH_VARARGS,
                        "Post output to the scripting engine"},
                        {"enableConsoleOutput", (PyCFunction) scriptengine_ConsoleOutput_enableConsoleOutput, METH_VARARGS,
                                    "enable / disable console output"},
                                    {0, 0, 0, 0}  
}
PyTypeObject scriptengine_ConsoleOutputType [static]
PythonShellWidget* shellWidget = NULL [static]