• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdesdk API Reference
  • KDE Home
  • Contact Us
 

umbrello/umbrello

  • sources
  • kde-4.14
  • kdesdk
  • umbrello
  • umbrello
  • codegenerators
  • ruby
rubywriter.h
Go to the documentation of this file.
1 /***************************************************************************
2  * This program is free software; you can redistribute it and/or modify *
3  * it under the terms of the GNU General Public License as published by *
4  * the Free Software Foundation; either version 2 of the License, or *
5  * (at your option) any later version. *
6  * *
7  * copyright (C) 2005 *
8  * Richard Dale <Richard_Dale@tipitina.demon.co.uk> *
9  * copyright (C) 2006-2014 *
10  * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
11  ***************************************************************************/
12 
13 #ifndef RUBYWRITER_H
14 #define RUBYWRITER_H
15 
16 #include "simplecodegenerator.h"
17 #include "umlattributelist.h"
18 #include "umloperationlist.h"
19 
20 #include <QStringList>
21 
26 class RubyWriter : public SimpleCodeGenerator
27 {
28  Q_OBJECT
29 public:
30 
31  RubyWriter();
32  virtual ~RubyWriter();
33 
34  virtual void writeClass(UMLClassifier *c);
35 
36  virtual Uml::ProgrammingLanguage::Enum language() const;
37 
38  virtual QStringList reservedKeywords() const;
39 
40 private:
41 
42  QString cppToRubyType(const QString &cppType);
43  QString cppToRubyName(const QString &cppName);
44 
45  void writeAttributeMethods(UMLAttributeList attribs,
46  Uml::Visibility::Enum visibility, QTextStream &stream);
47 
48  void writeSingleAttributeAccessorMethods(const QString &fieldName,
49  const QString &descr,
50  QTextStream &h);
51 
52  void writeOperations(UMLClassifier *c, QTextStream &h);
53  void writeOperations(const QString &classname, const UMLOperationList &opList,
54  Uml::Visibility::Enum permitScope, QTextStream &h);
55 
56 };
57 
58 #endif //RUBYWRITER
RubyWriter::~RubyWriter
virtual ~RubyWriter()
Definition: rubywriter.cpp:34
UMLClassifier
This class defines the non-graphical information required for a UML Classifier (ie a class or interfa...
Definition: classifier.h:39
RubyWriter::reservedKeywords
virtual QStringList reservedKeywords() const
Get list of reserved keywords.
Definition: rubywriter.cpp:430
Uml::Visibility::Enum
Enum
Definition: basictypes.h:56
Uml::ProgrammingLanguage::Enum
Enum
Definition: basictypes.h:247
SimpleCodeGenerator
A simple code generator interface designed to work with the existing codewriters. ...
Definition: simplecodegenerator.h:27
UMLAttributeList
This sub-class adds copyInto and clone to the QPtrList base class.
Definition: umlattributelist.h:26
RubyWriter::RubyWriter
RubyWriter()
Definition: rubywriter.cpp:30
QTextStream
RubyWriter::language
virtual Uml::ProgrammingLanguage::Enum language() const
Returns "Ruby".
Definition: rubywriter.cpp:421
simplecodegenerator.h
umlattributelist.h
umloperationlist.h
QString
QList
QStringList
RubyWriter::writeClass
virtual void writeClass(UMLClassifier *c)
Call this method to generate C++ code for a UMLClassifier.
Definition: rubywriter.cpp:42
RubyWriter
Class RubyWriter is a ruby code generator for UMLClassifier objects.
Definition: rubywriter.h:26
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

umbrello/umbrello

Skip menu "umbrello/umbrello"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • umbrello
  •   umbrello

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal