umbrello API Documentation

php5writer.h

00001 /***************************************************************************
00002                           php5writer.h  -  description
00003                              -------------------
00004     begin                : Thu Oct 17 2002
00005     copyright            : (C) 2002 by Heiko Nardmann
00006     email                : h.nardmann@secunet.de
00007 
00008     php5 version by Thorsten Kunz (tk AT bytecrash DOT net)
00009  ***************************************************************************/
00010 
00011 /***************************************************************************
00012  *                                                                         *
00013  *   This program is free software; you can redistribute it and/or modify  *
00014  *   it under the terms of the GNU General Public License as published by  *
00015  *   the Free Software Foundation; either version 2 of the License, or     *
00016  *   (at your option) any later version.                                   *
00017  *                                                                         *
00018  ***************************************************************************/
00019 
00020 #ifndef PHP5WRITER_H
00021 #define PHP5WRITER_H
00022 
00023 #include "simplecodegenerator.h"
00024 #include "../umlattributelist.h"
00025 #include "../umloperationlist.h"
00026 
00031 class Php5Writer : public SimpleCodeGenerator {
00032     Q_OBJECT
00033 public:
00034 
00035     Php5Writer();
00036     virtual ~Php5Writer();
00037 
00042     virtual void writeClass(UMLClassifier *c);
00043 
00047     virtual Uml::Programming_Language getLanguage();
00048 
00052     virtual const QStringList reservedKeywords() const;
00053 
00054 private:
00055 
00059     bool bPrivateSectionCommentIsWritten;
00060 
00067     void writeOperations(UMLClassifier *c, QTextStream &php);
00068 
00077     void writeOperations(const QString &classname, UMLOperationList &opList,
00078                          QTextStream &php,
00079                          bool interface = false, bool generateErrorStub = false);
00080 
00085     void writeAttributes(UMLClassifier *c, QTextStream &php);
00086 
00091     void writeAttributes(UMLAttributeList &atList, QTextStream &php);
00092 };
00093 
00094 #endif //PHP5WRITER
00095 
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