umbrello: umbrello/codegenerators/ruby/rubywriter.h Source File

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

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
24public:
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
35private:
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:417
RubyWriter::cppToRubyType
QString cppToRubyType(const QString &typeStr)
Definition rubywriter.cpp:139
RubyWriter::RubyWriter
RubyWriter()
Definition rubywriter.cpp:26
RubyWriter::writeClass
virtual void writeClass(UMLClassifier *c)
Definition rubywriter.cpp:38
RubyWriter::writeOperations
void writeOperations(UMLClassifier *c, QTextStream &h)
Definition rubywriter.cpp:175
RubyWriter::reservedKeywords
virtual QStringList reservedKeywords() const
Definition rubywriter.cpp:426
RubyWriter::cppToRubyName
QString cppToRubyName(const QString &nameStr)
Definition rubywriter.cpp:161
RubyWriter::writeSingleAttributeAccessorMethods
void writeSingleAttributeAccessorMethods(const QString &fieldName, const QString &descr, QTextStream &h)
Definition rubywriter.cpp:394
RubyWriter::~RubyWriter
virtual ~RubyWriter()
Definition rubywriter.cpp:30
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 classifier.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