umbrello: umbrello/codegenerators/python/pythonwriter.h Source File

umbrello 2.32.1 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 SPDX-License-Identifier: GPL-2.0-or-later
3
4 SPDX-FileCopyrightText: 2002 Vincent Decorges <vincent.decorges@eivd.ch>
5 SPDX-FileCopyrightText: 2003-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
6 */
7
8 #ifndef PYTHONWRITER_H
9 #define PYTHONWRITER_H
10
11 #include "simplecodegenerator.h"
12 #include "umlattributelist.h"
13 #include "umloperationlist.h"
14
22 class PythonWriter : public SimpleCodeGenerator
23 {
24 Q_OBJECT
25 public:
26
27 PythonWriter();
28 virtual ~PythonWriter();
29
30 virtual void writeClass(UMLClassifier *c);
31
32 virtual Uml::ProgrammingLanguage::Enum language() const;
33
34 virtual QStringList reservedKeywords() const;
35
36 QStringList defaultDatatypes();
37
38 private:
39
40 void writeAttributes(UMLAttributeList atList, QTextStream &py);
41
42 void writeOperations(UMLClassifier *c, QTextStream &h);
43 void writeOperations(const QString& classname, UMLOperationList &opList,
44 QTextStream &h, Uml::Visibility::Enum access);
45
46 static bool hasContainer(const QString &string);
47
48 bool m_bNeedPass;
49 };
50
51 #endif //PYTHONWRITER
PythonWriter
Definition: pythonwriter.h:23
PythonWriter::language
virtual Uml::ProgrammingLanguage::Enum language() const
Definition: pythonwriter.cpp:459
PythonWriter::writeAttributes
void writeAttributes(UMLAttributeList atList, QTextStream &py)
Definition: pythonwriter.cpp:308
PythonWriter::m_bNeedPass
bool m_bNeedPass
True as long as no "pass" has been written.
Definition: pythonwriter.h:48
PythonWriter::writeOperations
void writeOperations(UMLClassifier *c, QTextStream &h)
Definition: pythonwriter.cpp:330
PythonWriter::writeClass
virtual void writeClass(UMLClassifier *c)
Definition: pythonwriter.cpp:176
PythonWriter::defaultDatatypes
QStringList defaultDatatypes()
Definition: pythonwriter.cpp:467
PythonWriter::reservedKeywords
virtual QStringList reservedKeywords() const
Definition: pythonwriter.cpp:488
PythonWriter::PythonWriter
PythonWriter()
Definition: pythonwriter.cpp:164
PythonWriter::~PythonWriter
virtual ~PythonWriter()
Definition: pythonwriter.cpp:168
PythonWriter::hasContainer
static bool hasContainer(const QString &string)
Definition: pythonwriter.cpp:450
SimpleCodeGenerator
Definition: simplecodegenerator.h:30
UMLAttributeList
Definition: umlattributelist.h:21
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:35
Uml::ProgrammingLanguage::Enum
Enum
Definition: basictypes.h:291
Uml::Visibility::Enum
Enum
Definition: basictypes.h:45
simplecodegenerator.h
umlattributelist.h
umloperationlist.h
UMLOperationList
QList< UMLOperation * > UMLOperationList
Definition: umloperationlist.h:12