umbrello/umbrello
phpwriter.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 * copyright (C) 2003-2008 * 00009 * Umbrello UML Modeller Authors <uml-devel@uml.sf.net> * 00010 ***************************************************************************/ 00011 00012 #ifndef PHPWRITER_H 00013 #define PHPWRITER_H 00014 00015 #include "simplecodegenerator.h" 00016 #include "umlattributelist.h" 00017 #include "umloperationlist.h" 00018 00023 class PhpWriter : public SimpleCodeGenerator 00024 { 00025 Q_OBJECT 00026 public: 00027 00028 PhpWriter(); 00029 virtual ~PhpWriter(); 00030 00035 virtual void writeClass(UMLClassifier *c); 00036 00041 virtual Uml::Programming_Language getLanguage(); 00042 00047 virtual const QStringList reservedKeywords() const; 00048 00049 private: 00050 00054 bool bPrivateSectionCommentIsWritten; 00055 00061 void writeOperations(UMLClassifier *c, QTextStream &php); 00062 00069 void writeOperations(const QString& classname, 00070 UMLOperationList &opList, 00071 QTextStream &php); 00072 00078 void writeAttributes(UMLClassifier *c, QTextStream &php); 00079 00085 void writeAttributes(UMLAttributeList &atList, QTextStream &php); 00086 }; 00087 00088 #endif //PHPWRITER
KDE 4.4 API Reference