umbrello: umbrello/codegenerators/perl/perlwriter.h Source File

umbrello 2.39.0 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

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
15class UMLOperation;
16class UMLAttribute;
17class UMLClassifier;
18
23 class PerlWriter : public SimpleCodeGenerator
24{
25 Q_OBJECT
26public:
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
39private:
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:328
PerlWriter::GetUseStatements
bool GetUseStatements(UMLClassifier *c, QString &Ret, QString &ThisPkgName)
Definition perlwriter.cpp:275
PerlWriter::language
virtual Uml::ProgrammingLanguage::Enum language() const
Definition perlwriter.cpp:497
PerlWriter::~PerlWriter
virtual ~PerlWriter()
Definition perlwriter.cpp:271
PerlWriter::PerlWriter
PerlWriter()
Definition perlwriter.cpp:267
PerlWriter::reservedKeywords
virtual QStringList reservedKeywords() const
Definition perlwriter.cpp:729
PerlWriter::writeAttributes
void writeAttributes(UMLClassifier *c, QTextStream &perl)
Definition perlwriter.cpp:653
PerlWriter::defaultDatatypes
QStringList defaultDatatypes() const
Definition perlwriter.cpp:716
PerlWriter::writeOperations
void writeOperations(UMLClassifier *c, QTextStream &perl)
Definition perlwriter.cpp:510
SimpleCodeGenerator
Definition simplecodegenerator.h:30
UMLAttributeList
Definition umlattributelist.h:21
UMLAttribute
Sets up attribute information.
Definition attribute.h:23
UMLClassifier
Information for a non-graphical Concept/Class.
Definition classifier.h:35
UMLOperation
Definition operation.h:20
Uml::ProgrammingLanguage::Enum
Enum
Definition basictypes.h:291
simplecodegenerator.h
umlattributelist.h
umloperationlist.h
UMLOperationList
QList< UMLOperation * > UMLOperationList
Definition umloperationlist.h:14