Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members

python_api.h

00001 /***************************************************************************
00002                           python_api.h  -  main file of python API
00003                              -------------------
00004     begin                : Don, 13 Feb 2003
00005     copyright            : (C) 2003 by Heiko Köhler
00006     email                : heicom@users.sourceforge.net
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef __PYTHON_API_H__
00019 #define __PYTHON_API_H__
00020 
00021 #undef slots
00022 #include <Python.h>
00023 #define slots
00024 
00026 namespace API
00027 {
00029     class EnumModule
00030     {
00031     public:
00032         EnumModule() {}
00033         EnumModule( PyObject *parent, char *name );
00035         EnumModule &add( char *name, int value);
00037         char *itemName(int value);
00039         char *name() { return PyModule_GetName(module); }
00041         operator PyObject*() { return module; }
00042     private:
00043         PyObject *module;
00044     };
00045 
00046     PyObject *activateView(PyObject *, PyObject *args);
00047     PyObject *viewList(PyObject *, PyObject *args);
00048     extern "C" void initcute();
00049 }
00050 
00051 #endif 

Generated on Sun May 2 20:02:58 2004 by doxygen 1.3.2