lib

pythoninterpreter.h
1/***************************************************************************
2 * pythoninterpreter.h
3 * This file is part of the KDE project
4 * copyright (C)2004-2005 by Sebastian Sauer (mail@dipe.org)
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
14 * You should have received a copy of the GNU Library General Public License
15 * along with this program; see the file COPYING. If not, write to
16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18 ***************************************************************************/
19
20#ifndef KROSS_PYTHON_INTERPRETER_H
21#define KROSS_PYTHON_INTERPRETER_H
22
23#include "pythonconfig.h"
24#include "../api/object.h"
25#include "../api/interpreter.h"
26#include "../main/manager.h"
27//#include "../api/script.h"
28#include "../main/scriptcontainer.h"
29
30#include <tqstring.h>
31
32namespace Kross { namespace Python {
33
34 // Forward declarations.
35 class PythonSecurity;
36 class PythonModule;
37 class PythonInterpreterPrivate;
38
46 {
47 public:
48
57
61 virtual ~PythonInterpreter();
62
67
72
77
78 private:
80 PythonInterpreterPrivate* d;
81
83 inline void initialize();
85 inline void finalize();
86 };
87
88}}
89
90#endif
While the Interpreter is the implemented interpreter this class is used to provide some abstract info...
Definition interpreter.h:42
Base class for interpreters.
The ScriptContainer class is something like a single standalone scriptfile.
Base class for interpreter dependend functionality each script provides.
Definition script.h:46
PythonInterpreter(Kross::Api::InterpreterInfo *info)
Constructor.
virtual Kross::Api::Script * createScript(Kross::Api::ScriptContainer *scriptcontainer)
The PythonModule is the main python environment used as global object namespace.
This class handles the used Zope3 RestrictedPython package to spend a restricted sandbox for scriptin...
The Python plugin for the Kross scripting framework.
The Kross scripting bridge to embed scripting functionality into an application.
Definition callable.h:31