umbrello/umbrello
php5writer.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 * This program is free software; you can redistribute it and/or modify * 00003 * it under the terms of the GNU General Public License as published by * 00004 * the Free Software Foundation; either version 2 of the License, or * 00005 * (at your option) any later version. * 00006 * * 00007 * copyright (C) 2002 Heiko Nardmann <h.nardmann@secunet.de> * 00008 * Thorsten Kunz <tk AT bytecrash DOT net> * 00009 * copyright (C) 2003-2008 * 00010 * Umbrello UML Modeller Authors <uml-devel@uml.sf.net> * 00011 ***************************************************************************/ 00012 00013 #ifndef PHP5WRITER_H 00014 #define PHP5WRITER_H 00015 00016 #include "simplecodegenerator.h" 00017 #include "umlattributelist.h" 00018 #include "umloperationlist.h" 00019 00024 class Php5Writer : public SimpleCodeGenerator 00025 { 00026 Q_OBJECT 00027 public: 00028 00029 Php5Writer(); 00030 virtual ~Php5Writer(); 00031 00036 virtual void writeClass(UMLClassifier *c); 00037 00042 virtual Uml::Programming_Language getLanguage(); 00043 00048 virtual const QStringList reservedKeywords() const; 00049 00050 private: 00051 00055 bool bPrivateSectionCommentIsWritten; 00056 00062 void writeOperations(UMLClassifier *c, QTextStream &php); 00063 00071 void writeOperations(const QString &classname, UMLOperationList &opList, 00072 QTextStream &php, 00073 bool interface = false, bool generateErrorStub = false); 00074 00080 void writeAttributes(UMLClassifier *c, QTextStream &php); 00081 00087 void writeAttributes(UMLAttributeList &atList, QTextStream &php); 00088 }; 00089 00090 #endif //PHP5WRITER 00091
KDE 4.5 API Reference