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

rubywriter.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3
4 SPDX-FileCopyrightText: 2005 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
5 SPDX-FileCopyrightText: 2006-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
6*/
7
8#ifndef RUBYWRITER_H
9#define RUBYWRITER_H
10
11#include "simplecodegenerator.h"
12#include "umlattributelist.h"
13#include "umloperationlist.h"
14
15#include <QStringList>
16
21 class RubyWriter : public SimpleCodeGenerator
22{
23 Q_OBJECT
24 public:
25
26 RubyWriter();
27 virtual ~RubyWriter();
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
37 QString cppToRubyType(const QString &typeStr);
38 QString cppToRubyName(const QString &nameStr);
39
40 void writeAttributeMethods(UMLAttributeList attribs,
41 Uml::Visibility::Enum visibility, QTextStream &stream);
42
43 void writeSingleAttributeAccessorMethods(const QString &fieldName,
44 const QString &descr,
45 QTextStream &h);
46
47 void writeOperations(UMLClassifier *c, QTextStream &h);
48 void writeOperations(const QString &classname, const UMLOperationList &opList,
49 Uml::Visibility::Enum permitScope, QTextStream &h);
50
51};
52
53#endif //RUBYWRITER
RubyWriter
Definition: rubywriter.h:22
RubyWriter::language
virtual Uml::ProgrammingLanguage::Enum language() const
Definition: rubywriter.cpp:416
RubyWriter::cppToRubyType
QString cppToRubyType(const QString &typeStr)
Definition: rubywriter.cpp:137
RubyWriter::RubyWriter
RubyWriter()
Definition: rubywriter.cpp:25
RubyWriter::writeClass
virtual void writeClass(UMLClassifier *c)
Definition: rubywriter.cpp:37
RubyWriter::writeOperations
void writeOperations(UMLClassifier *c, QTextStream &h)
Definition: rubywriter.cpp:173
RubyWriter::reservedKeywords
virtual QStringList reservedKeywords() const
Definition: rubywriter.cpp:425
RubyWriter::cppToRubyName
QString cppToRubyName(const QString &nameStr)
Definition: rubywriter.cpp:159
RubyWriter::writeSingleAttributeAccessorMethods
void writeSingleAttributeAccessorMethods(const QString &fieldName, const QString &descr, QTextStream &h)
Definition: rubywriter.cpp:393
RubyWriter::~RubyWriter
virtual ~RubyWriter()
Definition: rubywriter.cpp:29
RubyWriter::writeAttributeMethods
void writeAttributeMethods(UMLAttributeList attribs, Uml::Visibility::Enum visibility, QTextStream &stream)
Definition: rubywriter.cpp:370
SimpleCodeGenerator
Definition: simplecodegenerator.h:30
UMLAttributeList
Definition: umlattributelist.h:21
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: umlclassifier.h:35
Uml::ProgrammingLanguage::Enum
Enum
Definition: basictypes.h:291
Uml::Visibility::Enum
Enum
Definition: basictypes.h:45
visibility
Definition: visibility.py:1
simplecodegenerator.h
umlattributelist.h
umloperationlist.h
UMLOperationList
QList< UMLOperation * > UMLOperationList
Definition: umloperationlist.h:14