[Uml-devel] [Bug 109909] New: python code generation missing class attributes, init code. (fwd)

Oliver.Kellogg at t-online.de Oliver.Kellogg at t-online.de
Mon Aug 1 13:21:19 UTC 2005

Richard Dale wrote:
> So my question is - Should C++ types and commenting style be the 'lingua
> franca' for Umbrello, and code for different target languages could always
> be generated from that?

UML purists would say "no". The level of detail allowed by C++ e.g. in
passing parameters to a method does not match up well with high level
modeling. In fact, UML defines its own syntax for operation parameters,
for example:

   myOp(firstParm : in boolean, secondParm : inout string) : float

This syntax is most closely mirrored by Ada and CORBA IDL.

On the other hand, certainly many people use Umbrello for importing their
ready done C++ projects. We are then faced with the difficulty of mapping
the very detailed C++ parameter passing mechanisms to the coarse grained
"in", "out", and "inout" of UML.


More information about the umbrello-devel mailing list