pythonwriter.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
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
This file is part of the documentation for umbrello Version 3.1.0.