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

idlwriter.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3
4 SPDX-FileCopyrightText: 2003-2021 Oliver Kellogg <okellogg@users.sourceforge.net>
5 SPDX-FileCopyrightText: 2003-2021 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
6*/
7
8#ifndef IDLWRITER_H
9#define IDLWRITER_H
10
11#include "simplecodegenerator.h"
12#include "umlobject.h"
13
14 class UMLAssociation;
15 class UMLOperation;
16 class QTextStream;
17
24 class IDLWriter : public SimpleCodeGenerator
25{
26 public:
27
28 IDLWriter();
29 virtual ~IDLWriter();
30
31 virtual void writeClass(UMLClassifier *c);
32
33 virtual Uml::ProgrammingLanguage::Enum language() const;
34
35 QStringList defaultDatatypes() const;
36
37 virtual QStringList reservedKeywords() const;
38
39 private:
40
41 void writeOperation(UMLOperation* op, QTextStream& idl, bool is_comment = false);
42
43 void computeAssocTypeAndRole(UMLAssociation* a, UMLClassifier *c,
44 QString& typeName, QString& roleName);
45
46 static bool isOOClass(UMLClassifier* c);
47
48 static bool assocTypeIsMappableToAttribute(Uml::AssociationType::Enum at);
49
50};
51
52#endif // IDLWRITER_H
IDLWriter
Definition idlwriter.h:25
IDLWriter::language
virtual Uml::ProgrammingLanguage::Enum language() const
Definition idlwriter.cpp:57
IDLWriter::IDLWriter
IDLWriter()
Definition idlwriter.cpp:27
IDLWriter::computeAssocTypeAndRole
void computeAssocTypeAndRole(UMLAssociation *a, UMLClassifier *c, QString &typeName, QString &roleName)
Definition idlwriter.cpp:62
IDLWriter::isOOClass
static bool isOOClass(UMLClassifier *c)
Definition idlwriter.cpp:35
IDLWriter::~IDLWriter
virtual ~IDLWriter()
Definition idlwriter.cpp:31
IDLWriter::reservedKeywords
virtual QStringList reservedKeywords() const
Definition idlwriter.cpp:490
IDLWriter::writeOperation
void writeOperation(UMLOperation *op, QTextStream &idl, bool is_comment=false)
Definition idlwriter.cpp:432
IDLWriter::writeClass
virtual void writeClass(UMLClassifier *c)
Definition idlwriter.cpp:108
IDLWriter::defaultDatatypes
QStringList defaultDatatypes() const
Definition idlwriter.cpp:467
IDLWriter::assocTypeIsMappableToAttribute
static bool assocTypeIsMappableToAttribute(Uml::AssociationType::Enum at)
Definition idlwriter.cpp:48
SimpleCodeGenerator
Definition simplecodegenerator.h:30
UMLAssociation
Sets up association information.
Definition association.h:29
UMLClassifier
Information for a non-graphical Concept/Class.
Definition classifier.h:35
UMLOperation
Definition operation.h:20
Uml::AssociationType::Enum
Enum
Definition basictypes.h:92
Uml::ProgrammingLanguage::Enum
Enum
Definition basictypes.h:291
a
QString a
Definition petalnode.cpp:13
simplecodegenerator.h
umlobject.h