I am currently writing code that will allow you to programatically get the
properties of any object in the diagram (including all the info in a UML
class object by the time I have finished).

This combined with a scripting extension (I am currently working on one
using python) would make this sort of thing quite easy.

I was thinking a good way to do this would be to create a UXF export
filter (UXF is a representation of UML diagrams in XML -- it is similar to
the OMG's XMI but looks a lot simpler).  It would then be possible to use
code generators that convert UXF -> source code (which should be easier to
write than native dia diagram format -> source code).  Doing an XMI output
filter in the future would probably be a good idea as well.

Of course, none of these things are quite ready yet :)

James.

--
Email: [EMAIL PROTECTED]
WWW:   http://www.daa.com.au/~james/


On Mon, 7 Feb 2000, Stefanus Du Toit wrote:

> Hi,
> 
> I have been using dia for a while now to create UML diagrams for various
> C++ projects of mine - I must say, it's very nice and has matured very
> well. Thanks!
> 
> I'm wondering whether there is any interest in writing some kind of UML ->
> source code converter (I would be very interested in getting something
> like that going for C++/Python, even Perl) that supports the XML output
> generated by Dia.
> 
> It shouldn't be all that hard, thanks to the output being in XML. If there
> is such an effort already started, I would appreciate any pointers to
> it. Otherwise I'll probably start a dia->c++ conversion tool of my own.
> 
> Thanks,
> 
> Stefanus Du Toit
>  - mailto:[EMAIL PROTECTED] | http://ultracool.net/ | icq:16775610
>  - WorldForge server coder. http://www.worldforge.org/
>  - GPG key: http://slashdot.org/users.pl?nick=sdt
> 
> ---(random tagline)---
> My way of joking is to tell the truth.  That's the funniest joke in the world.
>               -- Muhammad Ali
> 

Reply via email to