[Uml-devel] [Bug 75010] New: Wrong C++ code generation with(out) Templates classes

Eric Jardim eric at im.ufba.br
Thu Feb 12 00:33:03 UTC 2004


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
      
http://bugs.kde.org/show_bug.cgi?id=75010      
           Summary: Wrong C++ code generation with(out) Templates classes
           Product: umbrello
           Version: 1.2
          Platform: Mandrake RPMs
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: umbrello-devel at kde.org
        ReportedBy: eric at im.ufba.br


Version:           1.2 (using KDE 3.1.3)
Installed from:    Mandrake Linux Cooker i586 - Cooker
Compiler:          gcc version 3.3.1 (Mandrake Linux 9.2 3.3.1-2mdk)
OS:          Linux (i686) release 2.4.22-10mdk

Well,

umbrello 1.2 is much, much, much better than it's last stable version (1.1.1) and I'm feeling more comfortable to design my ideas on it (used only dia before).

I tried to generate some code and the output is a little strange :(

Hey, dont you want help on the code generating module, I could help, and I have some very nice ideas how to deal with the bidirectional model <-> code. Well, lets go to work...

How to Reproduce:
just create a simple class (ex: myclass) and add a template (ex: class T), and try to generate the code in C++.

The result is the myclass.h and myclass.cpp generated, but ignoring the template
--- myclass.h
#include <string> // <- what does it is doing here?

class myclass {
	// lot of comments :)
};

--- myclass.cpp
#include "string" // <- hey, where is "myclass.h"?

// comments again



Expected Behaviour: the expect code to be produce was something like
--- myclass.h
template <class T>
class myclass {
// 
};

well thats other problems, but I think it's a mix of bugs and I think an several inspection on the code generation module would solve most of the problems. Its look to me that the modelling module is priority for the developers. And theyre right. But someday I want to develop my apps with model from umbrello!

[Eric Jardim]




More information about the umbrello-devel mailing list