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

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

- Main Page
- Related Pages
- Topics
- 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
11class UMLAssociation;
12class UMLOperation;
13class QTextStream;
14
20 class PascalWriter : public SimpleCodeGenerator
21{
22 Q_OBJECT
23public:
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
38private:
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:461
PascalWriter::computeAssocTypeAndRole
void computeAssocTypeAndRole(UMLAssociation *a, QString &typeName, QString &roleName)
Definition pascalwriter.cpp:113
PascalWriter::isReservedKeyword
virtual bool isReservedKeyword(const QString &rPossiblyReservedKeyword)
Definition pascalwriter.cpp:445
PascalWriter::isOOClass
bool isOOClass(const UMLClassifier *c)
Definition pascalwriter.cpp:58
PascalWriter::writeClass
virtual void writeClass(UMLClassifier *c)
Definition pascalwriter.cpp:137
PascalWriter::PascalWriter
PascalWriter()
Definition pascalwriter.cpp:34
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:78
PascalWriter::writeOperation
void writeOperation(UMLOperation *op, QTextStream &ada, bool is_comment=false)
Definition pascalwriter.cpp:349
PascalWriter::language
virtual Uml::ProgrammingLanguage::Enum language() const
Definition pascalwriter.cpp:50
PascalWriter::~PascalWriter
virtual ~PascalWriter()
Definition pascalwriter.cpp:42
PascalWriter::defaultDatatypes
QStringList defaultDatatypes() const
Definition pascalwriter.cpp:411
SimpleCodeGenerator
Definition simplecodegenerator.h:30
UMLAssociation
Sets up association information.
Definition association.h:29
UMLClassifier
Information for a non-graphical Concept/Class.
Definition classifier.h:35
UMLOperation
Definition operation.h:20
UMLPackage
Non-graphical information for a Package.
Definition package.h:28
Uml::ProgrammingLanguage::Enum
Enum
Definition basictypes.h:291
a
QString a
Definition petalnode.cpp:13
simplecodegenerator.h