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

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

perlwriter.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) 2003 David Hugh-Jones <hughjonesd@yahoo.co.uk> *
8 * copyright (C) 2004-2020 *
9 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
10 ***************************************************************************/
11
12 #ifndef PERLWRITER_H
13 #define PERLWRITER_H
14
15 #include "simplecodegenerator.h"
16 #include "umlattributelist.h"
17 #include "umloperationlist.h"
18
19 class UMLOperation;
20 class UMLAttribute;
21 class UMLClassifier;
22
27 class PerlWriter : public SimpleCodeGenerator
28 {
29 Q_OBJECT
30 public:
31
32 PerlWriter();
33 virtual ~PerlWriter();
34
35 virtual void writeClass(UMLClassifier *c);
36
37 virtual Uml::ProgrammingLanguage::Enum language() const;
38
39 virtual QStringList reservedKeywords() const;
40
41 QStringList defaultDatatypes();
42
43 private:
44 void writeOperations(UMLClassifier *c, QTextStream &perl);
45 void writeOperations(const QString &classname, UMLOperationList &opList,
46 QTextStream &perl);
47
48 void writeAttributes(UMLClassifier *c, QTextStream &perl);
49 void writeAttributes(UMLAttributeList &atList, QTextStream &perl);
50
51 bool GetUseStatements(UMLClassifier *c, QString &Ret,
52 QString &ThisPkgName);
53
54 };
55
56 #endif //PERLWRITER
PerlWriter
Definition: perlwriter.h:28
PerlWriter::defaultDatatypes
QStringList defaultDatatypes()
Definition: perlwriter.cpp:721
PerlWriter::writeClass
virtual void writeClass(UMLClassifier *c)
Definition: perlwriter.cpp:332
PerlWriter::GetUseStatements
bool GetUseStatements(UMLClassifier *c, QString &Ret, QString &ThisPkgName)
Definition: perlwriter.cpp:279
PerlWriter::language
virtual Uml::ProgrammingLanguage::Enum language() const
Definition: perlwriter.cpp:502
PerlWriter::~PerlWriter
virtual ~PerlWriter()
Definition: perlwriter.cpp:275
PerlWriter::PerlWriter
PerlWriter()
Definition: perlwriter.cpp:271
PerlWriter::reservedKeywords
virtual QStringList reservedKeywords() const
Definition: perlwriter.cpp:734
PerlWriter::writeAttributes
void writeAttributes(UMLClassifier *c, QTextStream &perl)
Definition: perlwriter.cpp:658
PerlWriter::writeOperations
void writeOperations(UMLClassifier *c, QTextStream &perl)
Definition: perlwriter.cpp:515
SimpleCodeGenerator
Definition: simplecodegenerator.h:34
UMLAttributeList
Definition: umlattributelist.h:27
UMLAttribute
Sets up attribute information.
Definition: attribute.h:28
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:40
UMLOperation
Definition: operation.h:25
Uml::ProgrammingLanguage::Enum
Enum
Definition: basictypes.h:305
simplecodegenerator.h
umlattributelist.h
umloperationlist.h
UMLOperationList
QList< UMLOperation * > UMLOperationList
Definition: umloperationlist.h:18