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 #include <Python.h>
00022 
00024 namespace API
00025 {
00027     class EnumModule
00028     {
00029     public:
00030         EnumModule() {}
00031         EnumModule( PyObject *parent, char *name );
00033         EnumModule &add( char *name, int value);
00035         char *itemName(int value);
00037         char *name() { return PyModule_GetName(module); }
00039         operator PyObject*() { return module; }
00040     private:
00041         PyObject *module;
00042     };
00043 
00044     PyObject *activateView(PyObject *, PyObject *args);
00045     PyObject *viewList(PyObject *, PyObject *args);
00046     extern "C" void initcute();
00047 }
00048 
00049 #endif 

Generated on Wed Sep 10 03:46:24 2003 by doxygen1.2.18