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

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

pascalwriter.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2006-2021 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4*/
5
6#ifndef PASCALWRITER_H
7#define PASCALWRITER_H
8
9#include "simplecodegenerator.h"
10
11 class UMLAssociation;
12 class UMLOperation;
13 class QTextStream;
14
20 class PascalWriter : public SimpleCodeGenerator
21{
22 Q_OBJECT
23 public:
24
25 PascalWriter();
26 virtual ~PascalWriter ();
27
28 virtual void writeClass (UMLClassifier *c);
29
30 virtual Uml::ProgrammingLanguage::Enum language() const;
31
32 QStringList defaultDatatypes() const;
33
34 virtual bool isReservedKeyword(const QString & rPossiblyReservedKeyword);
35
36 virtual QStringList reservedKeywords() const;
37
38 private:
39
40 void writeOperation (UMLOperation *op, QTextStream &ada, bool is_comment = false);
41
42 void computeAssocTypeAndRole (UMLAssociation *a, QString& typeName, QString& roleName);
43
44 bool isOOClass (const UMLClassifier *c);
45
46 QString qualifiedName (UMLPackage *p, bool withType = false, bool byValue = false);
47
48 static const QString defaultPackageSuffix;
49
50};
51
52#endif // PASCALWRITER_H
53
PascalWriter
Definition: pascalwriter.h:21
PascalWriter::reservedKeywords
virtual QStringList reservedKeywords() const
Definition: pascalwriter.cpp:460
PascalWriter::computeAssocTypeAndRole
void computeAssocTypeAndRole(UMLAssociation *a, QString &typeName, QString &roleName)
Definition: pascalwriter.cpp:112
PascalWriter::isReservedKeyword
virtual bool isReservedKeyword(const QString &rPossiblyReservedKeyword)
Definition: pascalwriter.cpp:444
PascalWriter::isOOClass
bool isOOClass(const UMLClassifier *c)
Definition: pascalwriter.cpp:57
PascalWriter::writeClass
virtual void writeClass(UMLClassifier *c)
Definition: pascalwriter.cpp:136
PascalWriter::PascalWriter
PascalWriter()
Definition: pascalwriter.cpp:33
PascalWriter::defaultPackageSuffix
static const QString defaultPackageSuffix
Definition: pascalwriter.h:48
PascalWriter::qualifiedName
QString qualifiedName(UMLPackage *p, bool withType=false, bool byValue=false)
Definition: pascalwriter.cpp:77
PascalWriter::writeOperation
void writeOperation(UMLOperation *op, QTextStream &ada, bool is_comment=false)
Definition: pascalwriter.cpp:348
PascalWriter::language
virtual Uml::ProgrammingLanguage::Enum language() const
Definition: pascalwriter.cpp:49
PascalWriter::~PascalWriter
virtual ~PascalWriter()
Definition: pascalwriter.cpp:41
PascalWriter::defaultDatatypes
QStringList defaultDatatypes() const
Definition: pascalwriter.cpp:410
SimpleCodeGenerator
Definition: simplecodegenerator.h:30
UMLAssociation
Sets up association information.
Definition: umlassociation.h:29
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: umlclassifier.h:35
UMLOperation
Definition: umloperation.h:20
UMLPackage
Non-graphical information for a Package.
Definition: umlpackage.h:28
Uml::ProgrammingLanguage::Enum
Enum
Definition: basictypes.h:291
a
QString a
Definition: petalnode.cpp:13
simplecodegenerator.h