umbrello 26.03.70-1a62d36 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

perlwriter.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3
4 SPDX-FileCopyrightText: 2003 David Hugh-Jones <hughjonesd@yahoo.co.uk>
5 SPDX-FileCopyrightText: 2004-2021 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
6*/
7
8#ifndef PERLWRITER_H
9#define PERLWRITER_H
10
11#include "simplecodegenerator.h"
12#include "umlattributelist.h"
13#include "umloperationlist.h"
14
15 class UMLOperation;
16 class UMLAttribute;
17 class UMLClassifier;
18
23 class PerlWriter : public SimpleCodeGenerator
24{
25 Q_OBJECT
26 public:
27
28 PerlWriter();
29 virtual ~PerlWriter();
30
31 virtual void writeClass(UMLClassifier *c);
32
33 virtual Uml::ProgrammingLanguage::Enum language() const;
34
35 virtual QStringList reservedKeywords() const;
36
37 QStringList defaultDatatypes() const;
38
39 private:
40 void writeOperations(UMLClassifier *c, QTextStream &perl);
41 void writeOperations(const QString &classname, UMLOperationList &opList,
42 QTextStream &perl);
43
44 void writeAttributes(UMLClassifier *c, QTextStream &perl);
45 void writeAttributes(UMLAttributeList &atList, QTextStream &perl);
46
47 bool GetUseStatements(UMLClassifier *c, QString &Ret,
48 QString &ThisPkgName);
49
50};
51
52#endif //PERLWRITER
PerlWriter
Definition: perlwriter.h:24
PerlWriter::writeClass
virtual void writeClass(UMLClassifier *c)
Definition: perlwriter.cpp:329
PerlWriter::GetUseStatements
bool GetUseStatements(UMLClassifier *c, QString &Ret, QString &ThisPkgName)
Definition: perlwriter.cpp:276
PerlWriter::language
virtual Uml::ProgrammingLanguage::Enum language() const
Definition: perlwriter.cpp:499
PerlWriter::~PerlWriter
virtual ~PerlWriter()
Definition: perlwriter.cpp:272
PerlWriter::PerlWriter
PerlWriter()
Definition: perlwriter.cpp:268
PerlWriter::reservedKeywords
virtual QStringList reservedKeywords() const
Definition: perlwriter.cpp:731
PerlWriter::writeAttributes
void writeAttributes(UMLClassifier *c, QTextStream &perl)
Definition: perlwriter.cpp:655
PerlWriter::defaultDatatypes
QStringList defaultDatatypes() const
Definition: perlwriter.cpp:718
PerlWriter::writeOperations
void writeOperations(UMLClassifier *c, QTextStream &perl)
Definition: perlwriter.cpp:512
SimpleCodeGenerator
Definition: simplecodegenerator.h:30
UMLAttribute
Sets up attribute information.
Definition: umlattribute.h:23
UMLAttributeList
Definition: umlattributelist.h:21
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: umlclassifier.h:35
UMLOperation
Definition: umloperation.h:20
Uml::ProgrammingLanguage::Enum
Enum
Definition: basictypes.h:291
simplecodegenerator.h
umlattributelist.h
umloperationlist.h
UMLOperationList
QList< UMLOperation * > UMLOperationList
Definition: umloperationlist.h:14