umbrello: umbrello/codegenerators/js/jswriter.h Source File

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

jswriter.h
Go to the documentation of this file.
1 /*
2 SPDX-License-Identifier: GPL-2.0-or-later
3
4 SPDX-FileCopyrightText: 2003 Alexander Blum <blum@kewbee.de>
5 SPDX-FileCopyrightText: 2004-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
6 */
7
8 #ifndef JSWRITER_H
9 #define JSWRITER_H
10
11 #include "simplecodegenerator.h"
12 #include "umloperationlist.h"
13 #include "umlassociationlist.h"
14
15 class QTextStream;
16
21 class JSWriter : public SimpleCodeGenerator
22 {
23 Q_OBJECT
24 public:
25
26 JSWriter();
27 virtual ~JSWriter();
28
29 virtual void writeClass(UMLClassifier *c);
30
31 virtual Uml::ProgrammingLanguage::Enum language() const;
32
33 virtual QStringList reservedKeywords() const;
34
35 private:
36 void writeOperations(QString classname, UMLOperationList *opList, QTextStream &js);
37
38 void writeAssociation(QString& classname, UMLAssociationList& assoclist, QTextStream &js);
39 };
40
41 #endif //JSWRITER
JSWriter
Definition: jswriter.h:22
JSWriter::writeClass
virtual void writeClass(UMLClassifier *c)
Definition: jswriter.cpp:31
JSWriter::language
virtual Uml::ProgrammingLanguage::Enum language() const
Definition: jswriter.cpp:284
JSWriter::JSWriter
JSWriter()
Definition: jswriter.cpp:19
JSWriter::reservedKeywords
virtual QStringList reservedKeywords() const
Definition: jswriter.cpp:293
JSWriter::~JSWriter
virtual ~JSWriter()
Definition: jswriter.cpp:23
JSWriter::writeAssociation
void writeAssociation(QString &classname, UMLAssociationList &assoclist, QTextStream &js)
Definition: jswriter.cpp:184
JSWriter::writeOperations
void writeOperations(QString classname, UMLOperationList *opList, QTextStream &js)
Definition: jswriter.cpp:232
SimpleCodeGenerator
Definition: simplecodegenerator.h:30
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:35
Uml::ProgrammingLanguage::Enum
Enum
Definition: basictypes.h:291
simplecodegenerator.h
umlassociationlist.h
UMLAssociationList
QList< UMLAssociation * > UMLAssociationList
Definition: umlassociationlist.h:12
umloperationlist.h
UMLOperationList
QList< UMLOperation * > UMLOperationList
Definition: umloperationlist.h:12