umbrello  2.31.3
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
pythonwriter.h
Go to the documentation of this file.
1 /***************************************************************************
2  * This program is free software; you can redistribute it and/or modify *
3  * it under the terms of the GNU General Public License as published by *
4  * the Free Software Foundation; either version 2 of the License, or *
5  * (at your option) any later version. *
6  * *
7  * copyright (C) 2002 Vincent Decorges <vincent.decorges@eivd.ch> *
8  * copyright (C) 2003-2020 *
9  * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
10  ***************************************************************************/
11 
12 #ifndef PYTHONWRITER_H
13 #define PYTHONWRITER_H
14 
15 #include "simplecodegenerator.h"
16 #include "umlattributelist.h"
17 #include "umloperationlist.h"
18 
27 {
28  Q_OBJECT
29 public:
30 
31  PythonWriter();
32  virtual ~PythonWriter();
33 
34  virtual void writeClass(UMLClassifier *c);
35 
37 
38  virtual QStringList reservedKeywords() const;
39 
40  QStringList defaultDatatypes();
41 
42 private:
43 
44  void writeAttributes(UMLAttributeList atList, QTextStream &py);
45 
46  void writeOperations(UMLClassifier *c, QTextStream &h);
47  void writeOperations(const QString& classname, UMLOperationList &opList,
48  QTextStream &h, Uml::Visibility::Enum access);
49 
50  bool m_bNeedPass;
51 };
52 
53 #endif //PYTHONWRITER
void writeAttributes(UMLAttributeList atList, QTextStream &py)
Definition: pythonwriter.cpp:302
Information for a non-graphical Concept/Class.
Definition: classifier.h:39
Enum
Definition: basictypes.h:59
Enum
Definition: basictypes.h:271
Definition: simplecodegenerator.h:33
Definition: umlattributelist.h:26
QList< UMLOperation * > UMLOperationList
Definition: umloperationlist.h:18
virtual Uml::ProgrammingLanguage::Enum language() const
Definition: pythonwriter.cpp:440
PythonWriter()
Definition: pythonwriter.cpp:168
virtual ~PythonWriter()
Definition: pythonwriter.cpp:172
void writeOperations(UMLClassifier *c, QTextStream &h)
Definition: pythonwriter.cpp:321
virtual QStringList reservedKeywords() const
Definition: pythonwriter.cpp:469
bool m_bNeedPass
True as long as no "pass" has been written.
Definition: pythonwriter.h:50
QStringList defaultDatatypes()
Definition: pythonwriter.cpp:448
Definition: pythonwriter.h:26
virtual void writeClass(UMLClassifier *c)
Definition: pythonwriter.cpp:180