[Uml-user] ...create a new language generator?

Jonathan Riddell jr at jriddell.org
Mon Oct 17 08:06:45 UTC 2005


On Sat, Sep 17, 2005 at 02:17:02AM +0200, HyperSonix wrote:
> I have a question for you,
> Umbrello is very cool application to transport an idea into code.
> 
> Umbrello support c++ code generation,
> but if I have a new language,  for example SystemC (a C++ library), 
> which  it  use intensive "#define" and particular C++ coding style.
> the question is: 
> What do I do to add a modified version of C++ language or particular MACRO.?
> 
> Is it simple?

It's not complex.  Just see the codegenerator.cpp file and the
codegenerator directory in the source code for how to create them.
There are two types of code generator, simple and complex.  C++ is a
complex one.  You could either create a whole new simple one or add
some options to the existing c++ one depending on how different this
library is from normal C++.

Jonathan




More information about the umbrello mailing list