umbrello: umbrello/codegenerators/idl/idlwriter.h Source File

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

idlwriter.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-2020 *
8 * Oliver Kellogg <okellogg@users.sourceforge.net> *
9 * copyright (C) 2003-2020 *
10 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
11 ***************************************************************************/
12
13 #ifndef IDLWRITER_H
14 #define IDLWRITER_H
15
16 #include "simplecodegenerator.h"
17 #include "umlobject.h"
18
19 class UMLAssociation;
20 class UMLOperation;
21 class QTextStream;
22
29 class IDLWriter : public SimpleCodeGenerator
30 {
31 public:
32
33 IDLWriter();
34 virtual ~IDLWriter();
35
36 virtual void writeClass(UMLClassifier *c);
37
38 virtual Uml::ProgrammingLanguage::Enum language() const;
39
40 QStringList defaultDatatypes();
41
42 virtual QStringList reservedKeywords() const;
43
44 private:
45
46 void writeOperation(UMLOperation* op, QTextStream& idl, bool is_comment = false);
47
48 void computeAssocTypeAndRole(UMLAssociation* a, UMLClassifier *c,
49 QString& typeName, QString& roleName);
50
51 static bool isOOClass(UMLClassifier* c);
52
53 static bool assocTypeIsMappableToAttribute(Uml::AssociationType::Enum at);
54
55 };
56
57 #endif // IDLWRITER_H
IDLWriter
Definition: idlwriter.h:30
IDLWriter::language
virtual Uml::ProgrammingLanguage::Enum language() const
Definition: idlwriter.cpp:60
IDLWriter::IDLWriter
IDLWriter()
Definition: idlwriter.cpp:30
IDLWriter::computeAssocTypeAndRole
void computeAssocTypeAndRole(UMLAssociation *a, UMLClassifier *c, QString &typeName, QString &roleName)
Definition: idlwriter.cpp:65
IDLWriter::isOOClass
static bool isOOClass(UMLClassifier *c)
Definition: idlwriter.cpp:38
IDLWriter::~IDLWriter
virtual ~IDLWriter()
Definition: idlwriter.cpp:34
IDLWriter::reservedKeywords
virtual QStringList reservedKeywords() const
Definition: idlwriter.cpp:493
IDLWriter::writeOperation
void writeOperation(UMLOperation *op, QTextStream &idl, bool is_comment=false)
Definition: idlwriter.cpp:435
IDLWriter::defaultDatatypes
QStringList defaultDatatypes()
Definition: idlwriter.cpp:470
IDLWriter::writeClass
virtual void writeClass(UMLClassifier *c)
Definition: idlwriter.cpp:111
IDLWriter::assocTypeIsMappableToAttribute
static bool assocTypeIsMappableToAttribute(Uml::AssociationType::Enum at)
Definition: idlwriter.cpp:51
SimpleCodeGenerator
Definition: simplecodegenerator.h:34
UMLAssociation
Sets up association information.
Definition: association.h:34
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:40
UMLOperation
Definition: operation.h:25
Uml::AssociationType::Enum
Enum
Definition: basictypes.h:106
Uml::ProgrammingLanguage::Enum
Enum
Definition: basictypes.h:305
a
QString a
Definition: petalnode.cpp:18
simplecodegenerator.h
umlobject.h