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

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

rubycodegenerator.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 RUBYCODEGENERATOR_H
9#define RUBYCODEGENERATOR_H
10
11#include "codeviewerstate.h"
12#include "advancedcodegenerator.h"
13#include "rubyclassifiercodedocument.h"
14#include "rubycodegenerationpolicy.h"
15#include "umldoc.h"
16
17#include <QString>
18
19class CodeBlockWithComments;
20class CodeViewerDialog;
21
22 class RubyCodeGenerator : public AdvancedCodeGenerator
23{
24 Q_OBJECT
25public:
26
27 RubyCodeGenerator();
28 virtual ~RubyCodeGenerator();
29
30 bool getAutoGenerateAttribAccessors();
31 bool getAutoGenerateAssocAccessors();
32
33 static QString getListFieldClassName();
34
35 virtual CodeViewerDialog * getCodeViewerDialog(QWidget* parent, CodeDocument * doc,
36 Settings::CodeViewerState & state);
37
38 RubyCodeGenerationPolicy * getRubyPolicy();
39
40 CodeDocument * newClassifierCodeDocument(UMLClassifier * classifier);
41
42 Uml::ProgrammingLanguage::Enum language() const;
43
44 static QString cppToRubyType(const QString &cppType);
45 static QString cppToRubyName(const QString &cppName);
46
47 virtual QStringList reservedKeywords() const;
48
49protected:
50
51// CodeBlockWithComments * createClassDecl(UMLClassifier *c, RubyClassifierCodeDocument * doc);
52
53};
54
55#endif // RUBYCODEGENERATOR_H
advancedcodegenerator.h
AdvancedCodeGenerator
Definition: advancedcodegenerator.h:18
CodeBlockWithComments
Definition: codeblockwithcomments.h:20
CodeDocument
Definition: codedocument.h:30
CodeViewerDialog
Definition: codeviewerdialog.h:23
RubyCodeGenerationPolicy
Definition: rubycodegenerationpolicy.h:19
RubyCodeGenerator
Definition: rubycodegenerator.h:23
RubyCodeGenerator::getListFieldClassName
static QString getListFieldClassName()
Definition: rubycodegenerator.cpp:95
RubyCodeGenerator::RubyCodeGenerator
RubyCodeGenerator()
Definition: rubycodegenerator.cpp:27
RubyCodeGenerator::getAutoGenerateAttribAccessors
bool getAutoGenerateAttribAccessors()
Definition: rubycodegenerator.cpp:77
RubyCodeGenerator::reservedKeywords
virtual QStringList reservedKeywords() const
Definition: rubycodegenerator.cpp:155
RubyCodeGenerator::getRubyPolicy
RubyCodeGenerationPolicy * getRubyPolicy()
Definition: rubycodegenerator.cpp:68
RubyCodeGenerator::~RubyCodeGenerator
virtual ~RubyCodeGenerator()
Definition: rubycodegenerator.cpp:40
RubyCodeGenerator::language
Uml::ProgrammingLanguage::Enum language() const
Definition: rubycodegenerator.cpp:48
RubyCodeGenerator::getAutoGenerateAssocAccessors
bool getAutoGenerateAssocAccessors()
Definition: rubycodegenerator.cpp:86
RubyCodeGenerator::newClassifierCodeDocument
CodeDocument * newClassifierCodeDocument(UMLClassifier *classifier)
Definition: rubycodegenerator.cpp:144
RubyCodeGenerator::getCodeViewerDialog
virtual CodeViewerDialog * getCodeViewerDialog(QWidget *parent, CodeDocument *doc, Settings::CodeViewerState &state)
Definition: rubycodegenerator.cpp:57
RubyCodeGenerator::cppToRubyName
static QString cppToRubyName(const QString &cppName)
Definition: rubycodegenerator.cpp:130
RubyCodeGenerator::cppToRubyType
static QString cppToRubyType(const QString &cppType)
Definition: rubycodegenerator.cpp:106
Settings::CodeViewerState
configurable params for the code viewer tool
Definition: codeviewerstate.h:15
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:35
codeviewerstate.h
Uml::ProgrammingLanguage::Enum
Enum
Definition: basictypes.h:291
rubyclassifiercodedocument.h
rubycodegenerationpolicy.h
umldoc.h