umbrello: umbrello/codegenerators/pascal/pascalwriter.h Source File

umbrello 2.32.1 Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology

pascalwriter.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) 2006-2020 *
8 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9 ***************************************************************************/
10
11 #ifndef PASCALWRITER_H
12 #define PASCALWRITER_H
13
14 #include "simplecodegenerator.h"
15
16 class UMLAssociation;
17 class UMLOperation;
18 class QTextStream;
19
25 class PascalWriter : public SimpleCodeGenerator
26 {
27 Q_OBJECT
28 public:
29
30 PascalWriter();
31 virtual ~PascalWriter ();
32
33 virtual void writeClass (UMLClassifier *c);
34
35 virtual Uml::ProgrammingLanguage::Enum language() const;
36
37 QStringList defaultDatatypes();
38
39 virtual bool isReservedKeyword(const QString & rPossiblyReservedKeyword);
40
41 virtual QStringList reservedKeywords() const;
42
43 private:
44
45 void writeOperation (UMLOperation *op, QTextStream &ada, bool is_comment = false);
46
47 void computeAssocTypeAndRole (UMLAssociation *a, QString& typeName, QString& roleName);
48
49 bool isOOClass (UMLClassifier *c);
50
51 QString qualifiedName (UMLPackage *p, bool withType = false, bool byValue = false);
52
53 static const QString defaultPackageSuffix;
54
55 };
56
57 #endif // PASCALWRITER_H
58
PascalWriter
Definition: pascalwriter.h:26
PascalWriter::reservedKeywords
virtual QStringList reservedKeywords() const
Definition: pascalwriter.cpp:465
PascalWriter::computeAssocTypeAndRole
void computeAssocTypeAndRole(UMLAssociation *a, QString &typeName, QString &roleName)
Definition: pascalwriter.cpp:118
PascalWriter::isReservedKeyword
virtual bool isReservedKeyword(const QString &rPossiblyReservedKeyword)
Definition: pascalwriter.cpp:449
PascalWriter::writeClass
virtual void writeClass(UMLClassifier *c)
Definition: pascalwriter.cpp:142
PascalWriter::PascalWriter
PascalWriter()
Definition: pascalwriter.cpp:39
PascalWriter::defaultPackageSuffix
static const QString defaultPackageSuffix
Definition: pascalwriter.h:53
PascalWriter::qualifiedName
QString qualifiedName(UMLPackage *p, bool withType=false, bool byValue=false)
Definition: pascalwriter.cpp:83
PascalWriter::writeOperation
void writeOperation(UMLOperation *op, QTextStream &ada, bool is_comment=false)
Definition: pascalwriter.cpp:353
PascalWriter::defaultDatatypes
QStringList defaultDatatypes()
Definition: pascalwriter.cpp:415
PascalWriter::language
virtual Uml::ProgrammingLanguage::Enum language() const
Definition: pascalwriter.cpp:55
PascalWriter::isOOClass
bool isOOClass(UMLClassifier *c)
Definition: pascalwriter.cpp:63
PascalWriter::~PascalWriter
virtual ~PascalWriter()
Definition: pascalwriter.cpp:47
SimpleCodeGenerator
Definition: simplecodegenerator.h:34
UMLAssociation
Sets up association information.
Definition: association.h:34
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:40
UMLOperation
Definition: operation.h:25
UMLPackage
Non-graphical information for a Package.
Definition: package.h:33
Uml::ProgrammingLanguage::Enum
Enum
Definition: basictypes.h:305
a
QString a
Definition: petalnode.cpp:18
simplecodegenerator.h