<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2655.35">
<TITLE>Code generation questions</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2 FACE="Arial">Hi,</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">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:</FONT></P>
<P><FONT SIZE=2 FACE="Arial">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.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">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.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">I hope these comments make sense. They're both pretty trivial and easy to work around but I doubt that it's what is intended. Overall I'm very very impressed with Umbrello!</FONT></P>
<BR>
<P><FONT SIZE=2 FACE="Courier New">Regards,</FONT>
</P>
<P><FONT SIZE=2 FACE="Courier New">Gary Huntress</FONT>
<BR><FONT SIZE=2 FACE="Courier New">Code 4113</FONT>
<BR><FONT SIZE=2 FACE="Courier New">Naval Undersea Warfare Center</FONT>
<BR><FONT SIZE=2 FACE="Courier New">Newport, RI 02841</FONT>
<BR><FONT SIZE=2 FACE="Courier New">1-800-669-6892 x28990</FONT>
</P>
<BR>
<BR>
</BODY>
</HTML>