[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: How can we include implementation in DIA



On Wed, 4 Dec 2002, James Michael DuPont wrote:

> > Actually, I did modify dia2code a little to my liking, but here's
> > the part of dia2code which has to do with dia and is the subject
> > of my question.
> > 
> >     if ( umlo->key.implementation != NULL ) {
> >         fprintf(outfile, "%s\n", umlo->key.implementation);
> >     }
> 
> SO that just prints the body?

In my opinion, there is an attribute called "implementation",
that dia2code presumes may be set somehow(foresight?). I 
don't remember where I read it but it is supposed to be "suggested 
implementation" of the class.

> the you want to do, maybe, if there is not an implemenation
>  1. determine the return type of the method,
>  2. look and see if you need a return for that type
>  3. create a standard empty body based on the return type.

Right. I've already done those things(i even have a pretty
cludgy way of taking source out of text files and stuffing
them into the classes). I was just looking to see if life 
could be a tad simpler. Like if I could write the code from 
within dia :)

> > So, is there a way with dia to set the "key.implementation"
> > variable in dia2code. I'm not too well versed with xml, but I'm
> > guessing it has something to do with dia creating an attribute
> > called "implementation".
> > 
> > So does dia support this? If so how?
> 
> I would just grep out the section that writes the xml.
> personally I have not looked into this, yet.

I'm pretty sure there is not way to do it as of yet. It would
be a nice feature though.



Thanks




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] Mail converted by Mofo Magic and the Flying D

 
All trademarks and copyrights are the property of their respective owners.

Other Directory Sites: SeekWonder | Directory Owners Forum

GuideSMACK