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

- Main Page
- Related Pages
- Modules
- 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:55
IDLWriter::IDLWriter
IDLWriter()
Definition: idlwriter.cpp:25
IDLWriter::computeAssocTypeAndRole
void computeAssocTypeAndRole(UMLAssociation *a, UMLClassifier *c, QString &typeName, QString &roleName)
Definition: idlwriter.cpp:60
IDLWriter::isOOClass
static bool isOOClass(UMLClassifier *c)
Definition: idlwriter.cpp:33
IDLWriter::~IDLWriter
virtual ~IDLWriter()
Definition: idlwriter.cpp:29
IDLWriter::reservedKeywords
virtual QStringList reservedKeywords() const
Definition: idlwriter.cpp:488
IDLWriter::writeOperation
void writeOperation(UMLOperation *op, QTextStream &idl, bool is_comment=false)
Definition: idlwriter.cpp:430
IDLWriter::writeClass
virtual void writeClass(UMLClassifier *c)
Definition: idlwriter.cpp:106
IDLWriter::defaultDatatypes
QStringList defaultDatatypes() const
Definition: idlwriter.cpp:465
IDLWriter::assocTypeIsMappableToAttribute
static bool assocTypeIsMappableToAttribute(Uml::AssociationType::Enum at)
Definition: idlwriter.cpp:46
SimpleCodeGenerator
Definition: simplecodegenerator.h:30
UMLAssociation
Sets up association information.
Definition: umlassociation.h:29
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: umlclassifier.h:35
UMLOperation
Definition: umloperation.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