lib

pythonmodule.h
1/***************************************************************************
2 * pythonmodule.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_MODULE_H
21#define KROSS_PYTHON_MODULE_H
22
23#include "pythonconfig.h"
24#include "../api/object.h"
25#include "../api/script.h"
26#include "pythonextension.h"
27
28#include <tqstring.h>
29
30namespace Kross { namespace Python {
31
32 // Forward declaration.
34 class PythonModulePrivate;
35
44 class PythonModule : public Py::ExtensionModule<PythonModule>
45 {
46 public:
47
54 PythonModule(PythonInterpreter* interpreter);
55
59 virtual ~PythonModule();
60
64 Py::Dict getDict();
65
66 private:
68 PythonModulePrivate* d;
69
71 Py::Object import(const Py::Tuple&);
72 };
73
74}}
75
76#endif
Python interpreter bridge.
PythonModule(PythonInterpreter *interpreter)
Constructor.
virtual ~PythonModule()
Destructor.
The Python plugin for the Kross scripting framework.
The Kross scripting bridge to embed scripting functionality into an application.
Definition callable.h:33