umbrello API Documentation

pythonwriter.h

00001 /***************************************************************************
00002                           pythonwriter.h  -  description
00003                              -------------------
00004     begin                : Sat Dec 21 2002
00005     author               : Vincent Decorges
00006  ***************************************************************************/
00007 
00008 /***************************************************************************
00009  *                                                                         *
00010  *   This program is free software; you can redistribute it and/or modify  *
00011  *   it under the terms of the GNU General Public License as published by  *
00012  *   the Free Software Foundation; either version 2 of the License, or     *
00013  *   (at your option) any later version.                                   *
00014  *                                                                         *
00015  *   copyright (C) 2003-2007                                               *
00016  *   Umbrello UML Modeller Authors <uml-devel@uml.sf.net>                  *
00017  ***************************************************************************/
00018 
00019 #ifndef PYTHONWRITER_H
00020 #define PYTHONWRITER_H
00021 
00022 #include "simplecodegenerator.h"
00023 #include "../umlattributelist.h"
00024 #include "../umloperationlist.h"
00025 
00026 enum Access {PRIVATE, PUBLIC, PROTECTED};
00027 
00032 class PythonWriter : public SimpleCodeGenerator {
00033     Q_OBJECT
00034 public:
00035 
00036     PythonWriter();
00037     virtual ~PythonWriter();
00038 
00043     virtual void writeClass(UMLClassifier *c);
00044 
00048     virtual Uml::Programming_Language getLanguage();
00049 
00053     virtual const QStringList reservedKeywords() const;
00054 
00055 private:
00056 
00063     void writeAttributes(UMLAttributeList atList, QTextStream &py);
00064 
00071     void writeOperations(UMLClassifier *c, QTextStream &h);
00072 
00080     void writeOperations(const QString& classname, UMLOperationList &opList,
00081                          QTextStream &h, Access access);
00082 
00083     bool m_bNeedPass;  
00084 };
00085 
00086 #endif //PYTHONWRITER
KDE Logo
This file is part of the documentation for umbrello Version 3.1.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Jun 26 08:07:59 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003