[Uml-devel] KDE/kdesdk/umbrello/umbrello
Richard Dale
Richard_Dale at tipitina.demon.co.uk
Wed Jul 20 07:18:59 UTC 2005
SVN commit 436897 by rdale:
* Added ruby code generation using a simple code generator
similar to the python one
* C++ style doc comments are converted to ruby RDOC format
* Attributes are converted to ruby attr_accessor calls
* Multiple inheritance is modelled using single inheritance
from one ruby class, plus mixins corresponding to the other C++
classes, which are included as ruby modules.
CCMAIL: umbrello-devel at kde.org
M +1 -1 codegenerators/Makefile.am
M +6 -0 codegenerators/codegenfactory.cpp
A codegenerators/rubywriter.cpp [License: GPL (v2+)]
A codegenerators/rubywriter.h [License: no copyright GPL (v2+)]
M +1 -0 headings/Makefile.am
A headings/heading.rb
--- trunk/KDE/kdesdk/umbrello/umbrello/codegenerators/Makefile.am #436896:436897
@@ -22,7 +22,7 @@
cppcodegenerationformbase.ui cppcodegenerationform.cpp \
simplecodegenerator.cpp \
adawriter.cpp aswriter.cpp cppwriter.cpp javawriter.cpp jswriter.cpp \
- idlwriter.cpp perlwriter.cpp \
+ idlwriter.cpp perlwriter.cpp rubywriter.cpp \
phpwriter.cpp php5writer.cpp pythonwriter.cpp sqlwriter.cpp xmlschemawriter.cpp \
xmlelementcodeblock.cpp xmlcodecomment.cpp \
codegen_utils.cpp
--- trunk/KDE/kdesdk/umbrello/umbrello/codegenerators/codegenfactory.cpp #436896:436897
@@ -35,6 +35,7 @@
#include "php5writer.h"
#include "perlwriter.h"
#include "pythonwriter.h"
+#include "rubywriter.h"
#include "sqlwriter.h"
#include "aswriter.h"
#include "jswriter.h"
@@ -64,6 +65,7 @@
l.append("PHP");
l.append("PHP5");
l.append("Python");
+ l.append("Ruby");
l.append("SQL");
l.append("XMLSchema");
return l;
@@ -95,6 +97,8 @@
return "PerlWriter";
if (l == "Python")
return "PythonWriter";
+ if (l == "Ruby")
+ return "RubyWriter";
if (l == "SQL")
return "SQLWriter";
if (l == "XMLSchema")
@@ -138,6 +142,8 @@
obj = new PerlWriter( doc, name);
} else if (cname == "PythonWriter") {
obj = new PythonWriter( doc, name);
+ } else if (cname == "RubyWriter") {
+ obj = new RubyWriter( doc, name);
} else if (cname == "SQLWriter") {
obj = new SQLWriter( doc, name);
} else if (cname == "XMLSchemaWriter") {
--- trunk/KDE/kdesdk/umbrello/umbrello/headings/Makefile.am #436896:436897
@@ -11,5 +11,6 @@
heading.php \
heading.pm \
heading.py \
+heading.rb \
heading.sql \
heading.xsd
More information about the umbrello-devel
mailing list