[Uml-user] Code generation questions
Jonathan Riddell
jr at jriddell.org
Sat May 14 14:41:16 UTC 2005
On Tue, Mar 22, 2005 at 08:16:29AM -0500, Huntress Gary B NPRI wrote:
>
> Hi,
>
> I'm a new user of Umbrello, and I've been making several simple class
> diagrams just to get familiar with the process. I've done a generic
> "shape" class and derived "circle" and "triangle" classes. I'm
> primarily interested in c++ code generation. This seemed to go ok
> except for two issues:
>
> 1) The code generator writes a .cpp and .h file for each class as
> expected. However, the class cannot be compiled (gcc -c shape.cpp
> for example) because shape.cpp does not have a directive #include
> "shape.h". Is this default behavior? I can see no code generation
> options to fix this. I realize I can manually add the include but I'm
> sure that's not right.
Works for me, I get #include "foo.h" in the generated .cpp file.
> 2) I wrote some test methods that have in/out parameters of int or
> double (typically). In the generated code there was an include for
> #include "double.h" or #include "int.h".I was unable to find, or
> generate these datatype headers. A simple "touch double.h" fixes that
> with an empty file, but again, that doesn't seem right.
I do get int.h and int.cpp generated, but almost certainly shouldn't
do. Please report to bugs.kde.org.
Jonathan Riddell
More information about the umbrello
mailing list