[Uml-devel] kdesdk/umbrello/umbrello/codegenerators

Sebastian Stein seb.kde at hpfsc.de
Sun May 4 03:48:53 UTC 2003


CVS commit by sstein: 

started C# code generator, it is at the moment not finished (based on cpp writer)


  A            cswriter.cpp   1.1
  A            cswriter.h   1.1
  M +2 -1      Makefile.am   1.17
  M +6 -0      factory.cpp   1.9


--- kdesdk/umbrello/umbrello/codegenerators/Makefile.am  #1.16:1.17
@@ -8,5 +8,6 @@
                               cppwriter.cpp adawriter.cpp perlwriter.cpp \
                               pythonwriter.cpp idlwriter.cpp sqlwriter.cpp \
-                              aswriter.cpp jswriter.cpp xmlschemawriter.cpp
+                              aswriter.cpp jswriter.cpp xmlschemawriter.cpp \
+                                                                                cswriter.cpp
 
 install-data-local:

--- kdesdk/umbrello/umbrello/codegenerators/factory.cpp  #1.8:1.9
@@ -20,4 +20,5 @@
 #include "adawriter.h"
 #include "cppwriter.h"
+#include "cswriter.h"
 #include "idlwriter.h"
 #include "javawriter.h"
@@ -50,4 +51,5 @@ QStringList WriterFactory::languagesAvai
         l.append("ActionScript");
         l.append("Cpp");
+        l.append("C#");
         l.append("IDL");
         l.append("Java");
@@ -69,4 +71,6 @@ QString WriterFactory::generatorName(con
         if (l=="Cpp")
                 return "CppWriter";
+        if (l=="C#")
+                return "C#Writer";
         if (l=="IDL")
                 return "IDLWriter";
@@ -103,4 +107,6 @@ QObject* WriterFactory::createObject( QO
         } else if(n == "CppWriter") {
                 obj = new CppWriter( parent, name );
+        } else if(n == "C#Writer") {
+                obj = new CsWriter( parent, name );
         } else if(n == "IDLWriter") {
                 obj = new IDLWriter( parent, name );






More information about the umbrello-devel mailing list