umbrello/umbrello
phpwriter.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 phpwriter.h - description 00003 ------------------- 00004 begin : Thu Oct 17 2002 00005 copyright : (C) 2002 by Heiko Nardmann 00006 email : h.nardmann@secunet.de 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 PHPWRITER_H 00019 #define PHPWRITER_H 00020 00021 #include "simplecodegenerator.h" 00022 #include "../umlattributelist.h" 00023 #include "../umloperationlist.h" 00024 00029 class PhpWriter : public SimpleCodeGenerator 00030 { 00031 Q_OBJECT 00032 public: 00033 00034 PhpWriter(); 00035 virtual ~PhpWriter(); 00036 00041 virtual void writeClass(UMLClassifier *c); 00042 00047 virtual Uml::Programming_Language getLanguage(); 00048 00053 virtual const QStringList reservedKeywords() const; 00054 00055 private: 00056 00060 bool bPrivateSectionCommentIsWritten; 00061 00068 void writeOperations(UMLClassifier *c, QTextStream &php); 00069 00077 void writeOperations(const QString& classname, 00078 UMLOperationList &opList, 00079 QTextStream &php); 00080 00086 void writeAttributes(UMLClassifier *c, QTextStream &php); 00087 00093 void writeAttributes(UMLAttributeList &atList, QTextStream &php); 00094 }; 00095 00096 #endif //PHPWRITER
KDE 4.0 API Reference