You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(4) |
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(3) |
Feb
|
Mar
(1) |
Apr
(3) |
May
(1) |
Jun
|
Jul
(9) |
Aug
(4) |
Sep
(1) |
Oct
|
Nov
|
Dec
(10) |
2003 |
Jan
(13) |
Feb
(39) |
Mar
|
Apr
(17) |
May
(3) |
Jun
(3) |
Jul
(1) |
Aug
(2) |
Sep
|
Oct
(6) |
Nov
|
Dec
|
2004 |
Jan
|
Feb
(2) |
Mar
(3) |
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
|
Aug
|
Sep
(3) |
Oct
|
Nov
|
Dec
|
2007 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2008 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(4) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
(2) |
Oct
|
Nov
|
Dec
|
2011 |
Jan
|
Feb
|
Mar
(2) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
(7) |
Nov
|
Dec
|
2012 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(2) |
Jun
|
Jul
(7) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(2) |
2018 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2021 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Ashley K. <as...@zw...> - 2009-09-30 10:31:09
|
Charles you posted some amends to the PHP5 code generator a while back. Could you post the contents of the entire file please. I'd like to use it as you seem to have solved a couple of problems with it. -- Kind Regards Ashley |
From: Francesco N. <fra...@gm...> - 2009-08-15 23:15:29
|
Hi all! I made a patch for dia2code. The patch is in attachment and it corrects/integrates: a) new implementation of the create_package_dir (now it generates the full path) b) changes in java and php generators to take into account the changes in (a) c) modified both java and c# generators to write an error and exit in case of multiple inheritance The modification (a) was required because the full path was not generated (just the first part of the path). I checked also on the example files on the web page. The modification (c) was a "logic" error (fell free to discard that part of the patch). Bye! Francesco Nidito ps: I am working on a Perl modules generator too (it will take some time...) |
From: Charles S. <cha...@gm...> - 2008-05-09 19:28:43
|
OK! Thanks for the tips. Do you need the "diff -u" output for this code modification I've done? On Fri, May 9, 2008 at 3:49 PM, Oliver Kellogg <oke...@us...> wrote: > On Friday 09 May 2008 20:58, Charles Schaefer wrote: >> [...] >> I'm working in other modifications to the PHP5 generator. If any of >> them become a good feature I'll send it to the list. > > Great. > >> I have a question about the generators. I'm trying to make the PHP >> generator to write the interface methods in the implementer classes, >> but I'm with a big difficulty (just some weeks of C programing >> knowledge =/ ). >> Why the other generators doesn't have this feature? Is this so >> difficulty or this is an intentional gap? > > I think it's just that nobody has implemented it yet. > (In fact, not many people have been working on dia2code in recent > years.) > >> The (text) diff output: >> >> --------- code ------------- >> 8a9 >> [...] > > One more thing: Please use "diff -u" (unified diff format) when > creating diffs. > Also it would be best if you send the diff as an attachment, > otherwise you risk that some mailer inserts gratuitous line breaks. > > Thanks for your work, > > Oliver > -- Charles Schaefer - Web Developer Email: cha...@gm... Tels.: +55 31 9317-2862 ATENÇÃO: Não imprima este e-mail. A natureza agradece. E seu bolso também. WARNING: Don't print this e-mail. The nature is thankful. And your money too. |
From: Oliver K. <oke...@us...> - 2008-05-09 19:21:46
|
On Friday 09 May 2008 20:58, Charles Schaefer wrote: > [...] > I'm working in other modifications to the PHP5 generator. If any of > them become a good feature I'll send it to the list. Great. > I have a question about the generators. I'm trying to make the PHP > generator to write the interface methods in the implementer classes, > but I'm with a big difficulty (just some weeks of C programing > knowledge =/ ). > Why the other generators doesn't have this feature? Is this so > difficulty or this is an intentional gap? I think it's just that nobody has implemented it yet. (In fact, not many people have been working on dia2code in recent years.) > The (text) diff output: > > --------- code ------------- > 8a9 > [...] One more thing: Please use "diff -u" (unified diff format) when creating diffs. Also it would be best if you send the diff as an attachment, otherwise you risk that some mailer inserts gratuitous line breaks. Thanks for your work, Oliver |
From: Charles S. <cha...@gm...> - 2008-05-09 18:58:40
|
Oh, sorry Oliver and others! I've forgotten to disable the html format in the mail client :$ I'm working in other modifications to the PHP5 generator. If any of them become a good feature I'll send it to the list. I have a question about the generators. I'm trying to make the PHP generator to write the interface methods in the implementer classes, but I'm with a big difficulty (just some weeks of C programing knowledge =/ ). Why the other generators doesn't have this feature? Is this so difficulty or this is an intentional gap? The (text) diff output: --------- code ------------- 8a9 > modified by : Charles Schaefer <cha...@gm...> 90c91,94 < fprintf(outfile, "%s * XXX\n", TABS ); --- > if (strlen(umlo->key.attr.comment)>0) > fprintf(outfile, "%s * %s\n", TABS, umlo->key.attr.comment); > else > fprintf(outfile, "%s * XXX\n", TABS ); 96c100 < fprintf(outfile, "%s * @param %s $%s XXX\n", --- > fprintf(outfile, "%s * @param %s $%s ", 97a102,105 > if (strlen(parama->key.comment)>0) > fprintf(outfile, "%s\n", parama->key.comment); > else > fprintf(outfile, "XXX\n"); 106c114 < fprintf(outfile, "%s * @access ", TABS ); --- > /*fprintf(outfile, "%s * @access ", TABS ); 108c116 < fprintf(outfile, "%s\n", tmpname); --- > fprintf(outfile, "%s\n", tmpname);*/ 174d181 < fprintf(outfile, "%s// Associations\n", TABS); 175a183,185 > if (associations != NULL) > fprintf(outfile, "%s// Associations\n", TABS); > 197d206 < fprintf(outfile, "%s// Attributes\n", TABS); 198a208,210 > if (umla != NULL) > fprintf(outfile, "%s// Attributes\n", TABS); > 201c213,216 < fprintf(outfile, "%s * XXX\n", TABS ); --- > if (strlen(umla->key.comment)>0) > fprintf(outfile, "%s * %s\n", TABS, umla->key.comment); > else > fprintf(outfile, "%s * XXX\n", TABS ); 204c219 < fprintf(outfile, "%s * @access ", TABS); --- > //fprintf(outfile, "%s * @access ", TABS); 207c222 < fprintf(outfile, "%s\n", tmpname); --- > //fprintf(outfile, "%s\n", tmpname);*/ 231c246,248 < fprintf(outfile, "%s// Operations\n", TABS); --- > if (umlo != NULL) > fprintf(outfile, "%s// Operations\n", TABS); > 293c310,313 < fprintf(outfile, " * XXX detailed description\n" ); --- > if (strlen(tmplist->key->comment)>0) > fprintf(outfile, " * %s\n", tmplist->key->comment); > else > fprintf(outfile, " * XXX detailed description\n" ); --------- code ------------ -- Charles Schaefer - Web Developer Email: cha...@gm... Tels.: +55 31 9317-2862 +55 31 2526-4096 ATENÇÃO: Não imprima este e-mail. A natureza agradece. E seu bolso também. WARNING: Don't print this e-mail. The nature is thankful. And your money too |
From: Charles S. <cha...@gm...> - 2008-05-08 22:39:18
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> </head> <body bgcolor="#ffffff" text="#000000"> Hi all,<br> I've downloaded, installed and tested dia2code today. But the PHP5 code generated wasn't so good so I've modified the generate_code_php_five.c to use the diagram comments and to remove some unnecessary doc tags (the @access tag isn't required once the PHP5 has the public, protected and private access keywords).<br> <br> The modifications are very simple, but useful. I don't know if this list is the best place to post the code. If not, please, say me where i must to post the file :)<br> <br> Thanks.<br> <br> P.S. I've sent this message before, but i don't know if my register was approved o_O<br> <br> The diff output:<br> <br> --------- code -------------<br> 8a9<br> > modified by : Charles Schaefer <<a moz-do-not-send="true" href="mailto:cha...@gm..." target="_blank">cha...@gm...</a>><br> 90c91,94<br> < fprintf(outfile, "%s * XXX\n", TABS );<br> ---<br> > if (strlen(umlo->key.attr.comment)>0)<br> > fprintf(outfile, "%s * %s\n", TABS, umlo->key.attr.comment);<br> > else<br> > fprintf(outfile, "%s * XXX\n", TABS );<br> 96c100<br> < fprintf(outfile, "%s * @param %s $%s XXX\n",<br> ---<br> > fprintf(outfile, "%s * @param %s $%s ",<br> 97a102,105<br> > if (strlen(parama->key.comment)>0)<br> > fprintf(outfile, "%s\n", parama->key.comment);<br> > else<br> > fprintf(outfile, "XXX\n");<br> 106c114<br> < fprintf(outfile, "%s * @access ", TABS );<br> ---<br> > /*fprintf(outfile, "%s * @access ", TABS );<br> 108c116<br> < fprintf(outfile, "%s\n", tmpname);<br> ---<br> > fprintf(outfile, "%s\n", tmpname);*/<br> 174d181<br> < fprintf(outfile, "%s// Associations\n", TABS);<br> 175a183,185<br> > if (associations != NULL)<br> > fprintf(outfile, "%s// Associations\n", TABS);<br> > <br> 197d206<br> < fprintf(outfile, "%s// Attributes\n", TABS);<br> 198a208,210<br> > if (umla != NULL)<br> > fprintf(outfile, "%s// Attributes\n", TABS);<br> > <br> 201c213,216<br> < fprintf(outfile, "%s * XXX\n", TABS );<br> ---<br> > if (strlen(umla->key.comment)>0)<br> > fprintf(outfile, "%s * %s\n", TABS, umla->key.comment);<br> > else<br> > fprintf(outfile, "%s * XXX\n", TABS );<br> 204c219<br> < fprintf(outfile, "%s * @access ", TABS); <br> ---<br> > //fprintf(outfile, "%s * @access ", TABS); <br> 207c222<br> < fprintf(outfile, "%s\n", tmpname);<br> ---<br> > //fprintf(outfile, "%s\n", tmpname);*/<br> 231c246,248<br> < fprintf(outfile, "%s// Operations\n", TABS);<br> ---<br> > if (umlo != NULL)<br> > fprintf(outfile, "%s// Operations\n", TABS);<br> > <br> 293c310,313<br> < fprintf(outfile, " * XXX detailed description\n" );<br> ---<br> > if (strlen(tmplist->key->comment)>0)<br> > fprintf(outfile, " * %s\n", tmplist->key->comment);<br> > else<br> > fprintf(outfile, " * XXX detailed description\n" );<br> <br> --------- code ------------<br clear="all"> <br> <pre class="moz-signature" cols="100">-- Charles Schaefer - Web Developer Email: <a class="moz-txt-link-abbreviated" href="mailto:cha...@gm...">cha...@gm...</a> Tels.: +55 31 9317-2862 +55 31 2526-4096 ATENÇÃO: Não imprima este e-mail. A natureza agradece. E seu bolso também. WARNING: Don't print this e-mail. The nature is thankful. And your money too </pre> </body> </html> |
From: Steffen M. <sdt...@gm...> - 2007-05-16 14:08:56
|
Hello All, Any objections against changing Copyright: GPL to License: GPL in dia2code.spec? Otherwise the RPM will not build on my openSUSE system. If there are no objections, I'll commit the change. Regards, Steffen |
From: Steffen M. <sdt...@gm...> - 2007-05-16 06:26:57
|
Dear Dia2code developers, are there any plans to switch the code repository from CVS to SVN? Regards, Steffen |
From: Srinivas N. <ned...@cs...> - 2005-09-26 23:59:20
|
hello I am interested in generating an XML representation from Dia UML digrams in a custom format. I took a look at the Dia2Code source for inspiration. I notice that its written in C. What do most people use for writing a code generator? I wondered if you could give me some pointers about how to get started - do you recommend XSL or a regular programming language, is there a DTD available, what are the gotchas I need to worry about, etc Any help you could give is much appreciated thanks |
From: Oliver K. <oli...@t-...> - 2005-09-06 04:21:38
|
Hi Tim, Thanks for your message. Good to hear that people are using this stuff ;-) I guess the simplest would be if you could either * prepare a "diff -ur" against dia2code cvs, or * tar up your added/changed files and send that to me. If you are planning for ongoing work on dia2code then getting you cvs write permission should be doable too. Regards, Oliver -- mailto:oke...@us... ----- Original Message ----- From: Tim Rodger To: dia...@li... Sent: Sunday, September 04, 2005 12:10 AM Subject: [Dia2code-general] php5 code export Hi, I've just been doing a bit of work on dia2code to add functionality for producing php5 code, I've tested it a bit and it seems to work fine. So anyway Iwas thinking to submit to the project. How do I go about doing that? Tim Rodger |
From: Tim R. <tim...@gm...> - 2005-09-03 22:10:52
|
Hi, I've just been doing a bit of work on dia2code to add functionality for=20 producing php5 code, I've tested it a bit and it seems to work fine. So=20 anyway Iwas thinking to submit to the project. How do I go about doing that= ? Tim Rodger |
From: Daniel W. <dw...@th...> - 2005-06-28 17:43:13
|
Of course I forgot to attach the patch. Here it is. |
From: Daniel W. <dw...@th...> - 2005-06-28 17:42:08
|
I wrote a patch that implements horizontal mapping as described here: http://www.objectmatter.com/vbsf/docs/maptool/ormapping.html A sample dia file can be found at http://publish.fh-sbg.ac.at/~dweller/horizontal.dia , along with the generated sql: http://publish.fh-sbg.ac.at/~dweller/horizontal.sql This is my first contribution to an open source project, so any and all comments regarding my submission are very welcome. Daniel |
From: Jim M. <me_...@ya...> - 2004-04-22 14:05:18
|
Tried the version before this latest release and had many problems. I'll try latest but had little success, then the next release popped up, attempted to use it with little results and just blew it off. I also tried Argo2dia which uses XSLT on *.pgml files to generate an input file for dia, but the file crashes the dia application. Do you have any experience with this issue or with generating DDL from dia diagrams? The goal is to go into dia then generate DDL for RDBMS from dia output which apparently is supported by several different add-ons ( on of which is tedia2sql) Again any help appreciated, especially if you have tackled this issue previously. dia...@li... wrote: Send Dia2code-general mailing list submissions to dia...@li... To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/dia2code-general or, via email, send a message with subject or body 'help' to dia...@li... You can reach the person managing the list at dia...@li... When replying, please edit your Subject line so it is more specific than "Re: Contents of Dia2code-general digest..." Today's Topics: 1. dia2code: Is there a Code 2 Dia ? XML -> Dia (DTD or XSD)? (Jim McLaughlin) --__--__-- Message: 1 Date: Tue, 20 Apr 2004 06:34:46 -0700 (PDT) From: Jim McLaughlin To: dia...@li... Subject: [Dia2code-general] dia2code: Is there a Code 2 Dia ? XML -> Dia (DTD or XSD)? Is there any import that anybody recommends to do importing into Dia (aka a code2dia)? __________________________________ Do you Yahoo!? Yahoo! Photos: High-quality 4x6 digital prints for 25¢ http://photos.yahoo.com/ph/print_splash --__--__-- _______________________________________________ Dia2code-general mailing list Dia...@li... https://lists.sourceforge.net/lists/listinfo/dia2code-general End of Dia2code-general Digest --------------------------------- Do you Yahoo!? Yahoo! Photos: High-quality 4x6 digital prints for 25¢ |
From: Jim M. <me_...@ya...> - 2004-04-20 13:34:46
|
Is there any import that anybody recommends to do importing into Dia (aka a code2dia)? __________________________________ Do you Yahoo!? Yahoo! Photos: High-quality 4x6 digital prints for 25¢ http://photos.yahoo.com/ph/print_splash |
From: Robert K. <rik...@ho...> - 2004-03-18 21:52:06
|
I am sorry, I almost forgot to say: Good job. I'm glad other people are looking to solve this problem. >From: "Robert Konigsberg" <rik...@ho...> >To: dia...@li... >Subject: RE: [Dia2code-general] Request fo comment - a simple code >preservation implementation >Date: Thu, 18 Mar 2004 16:47:03 -0500 >MIME-Version: 1.0 >X-Originating-IP: [192.77.198.12] >X-Originating-Email: [rik...@ho...] >X-Sender: rik...@ho... >Received: from sc8-sf-list1.sourceforge.net ([66.35.250.206]) by >mc4-f15.hotmail.com with Microsoft SMTPSVC(5.0.2195.6824); Thu, 18 Mar 2004 >13:49:10 -0800 >Received: from localhost ([127.0.0.1] helo=projects.sourceforge.net)by >sc8-sf-list1.sourceforge.net with esmtp (Exim 4.30)id 1B45Mw-0003TT-Ds; >Thu, 18 Mar 2004 13:48:02 -0800 >Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.11] >helo=sc8-sf-mx1.sourceforge.net)by sc8-sf-list1.sourceforge.net with esmtp >(Exim 4.30)id 1B45MA-0003Fe-G3for dia...@li...; >Thu, 18 Mar 2004 13:47:14 -0800 >Received: from bay9-f41.bay9.hotmail.com ([64.4.47.41] helo=hotmail.com)by >sc8-sf-mx1.sourceforge.net with esmtp (Exim 4.30)id 1B45M8-0000h5-VWfor >dia...@li...; Thu, 18 Mar 2004 13:47:12 -0800 >Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; >Thu, 18 Mar 2004 13:47:03 -0800 >Received: from 192.77.198.12 by by9fd.bay9.hotmail.msn.com with HTTP;Thu, >18 Mar 2004 21:47:03 GMT >X-Message-Info: JGTYoYF78jHFai2KpgTjfrlRi1pehc8B >Message-ID: <BAY...@ho...> >X-OriginalArrivalTime: 18 Mar 2004 21:47:03.0963 (UTC) >FILETIME=[8D13D6B0:01C40D32] >X-Spam-Score: 0.0 (/) >X-Spam-Report: Spam Filtering performed by sourceforge.net.See >http://spamassassin.org/tag/ for more details.Report problems to >http://sf.net/tracker/?func=add&group_id=1&atid=200001 >Errors-To: dia...@li... >X-BeenThere: dia...@li... >X-Mailman-Version: 2.0.9-sf.net >Precedence: bulk >List-Unsubscribe: ><https://lists.sourceforge.net/lists/listinfo/dia2code-general>,<mailto:dia...@li...?subject=unsubscribe> >List-Id: General Dia2Code discussion ><dia2code-general.lists.sourceforge.net> >List-Post: <mailto:dia...@li...> >List-Help: ><mailto:dia...@li...?subject=help> >List-Subscribe: ><https://lists.sourceforge.net/lists/listinfo/dia2code-general>,<mailto:dia...@li...?subject=subscribe> >List-Archive: ><http://sourceforge.net/mailarchive/forum.php?forum=dia2code-general> >X-Original-Date: Thu, 18 Mar 2004 16:47:03 -0500 >Return-Path: dia...@li... > >Leo, > >Take a look at the code preservation in the C++ module, which, while a bit >more cumbersome than the Java and PHP implementation which you implement, >is arguably closer to being useful across more programming languages. >Better to have a single implementation of code preservation across dia2code >than several -- this is why it's already so difficult to use, no >programming language implementation shares anything but the most basic >functionality, and fundamentally operates in a vacuum. > >I wrote d2c_fprintf -- once again look at the C++ implementation to get a >sense of how it works: It works with some other functions (whose names >escape me for the moment) that are an attempt to abstract out some of the >source-code indentation issues. So my advise is, use d2c_fprintf, but look >at how the C++ generator handles brackets, and follow accordingly (oh, now >I remmeber, I think the name of the functions are d2c_indent and >d2c_unindent.) See, d2c_fprintf knows how much you've indented, so it >replaces \n with \n, followed by the correct number of spaces to indent >your code for you. > >Really, the C++ code is a template for how that stuff will work. > >Rob > >>From: Leonard WEST <le...@ne...> >>Reply-To: le...@ne... >>To: dia...@li... >>Subject: [Dia2code-general] Request fo comment - a simple code >>preservation implementation >>Date: Tue, 16 Mar 2004 10:16:23 +0100 >>MIME-Version: 1.0 >>Received: from sc8-sf-list1.sourceforge.net ([66.35.250.206]) by >>mc9-f20.hotmail.com with Microsoft SMTPSVC(5.0.2195.6824); Tue, 16 Mar >>2004 01:23:39 -0800 >>Received: from localhost ([127.0.0.1] helo=projects.sourceforge.net)by >>sc8-sf-list1.sourceforge.net with esmtp (Exim 4.30)id 1B3AjU-0004cp-2M; >>Tue, 16 Mar 2004 01:19:32 -0800 >>Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.12] >>helo=sc8-sf-mx2.sourceforge.net)by sc8-sf-list1.sourceforge.net with esmtp >>(Exim 4.30)id 1B3Afs-0003yW-Iwfor dia...@li...; >>Tue, 16 Mar 2004 01:15:48 -0800 >>Received: from smtp1.ldcom.fr ([62.39.9.135])by sc8-sf-mx2.sourceforge.net >>with esmtp (Exim 4.30)id 1B3Afq-0001yX-SDfor >>dia...@li...; Tue, 16 Mar 2004 01:15:47 -0800 >>Received: from smtp1.ldcom.fr (localhost [127.0.0.1])by >>smtp1.smtp1.ldcom.fr (Postfix) with ESMTP id 81F6D26827Efor >><dia...@li...>; Tue, 16 Mar 2004 10:13:49 +0100 >>(MET) >>Received: from nr0s0086.servgamma.9telecom.fr >>(nr0s0086e0.servgamma.9telecom.fr [10.149.56.136])by smtp1.ldcom.fr >>(Postfix) with ESMTP id 5F2E7268012for >><dia...@li...>; Tue, 16 Mar 2004 10:13:49 +0100 >>(MET) >>Received: from lcopar-cpla.ldcom.fr (lcopar_cpla.blg.ldcom.ld >>[10.192.224.127]) by nr0s0086.servgamma.9telecom.fr with SMTP (Microsoft >>Exchange Internet Mail Service Version 5.5.2653.13)id G03PW94Q; Tue, 16 >>Mar 2004 10:16:09 +0100 >>Received: from [10.151.17.4] (helo=ianan)by lcopar-cpla.ldcom.fr with >>esmtp (Exim 3.36 #1 (Debian))id 1B3Afe-0004ub-00for >><dia...@li...>; Tue, 16 Mar 2004 10:15:34 +0100 >>X-Message-Info: JGTYoYF78jGIxTwXWrZZCrh1bHigeMbB >>User-Agent: KMail/1.6.1 >>Message-Id: <200...@ne...> >>X-Spam-Score: 0.0 (/) >>X-Spam-Report: Spam Filtering performed by sourceforge.net.See >>http://spamassassin.org/tag/ for more details.Report problems to >>http://sf.net/tracker/?func=add&group_id=1&atid=200001 >>Errors-To: dia...@li... >>X-BeenThere: dia...@li... >>X-Mailman-Version: 2.0.9-sf.net >>Precedence: bulk >>List-Unsubscribe: >><https://lists.sourceforge.net/lists/listinfo/dia2code-general>,<mailto:dia...@li...?subject=unsubscribe> >>List-Id: General Dia2Code discussion >><dia2code-general.lists.sourceforge.net> >>List-Post: <mailto:dia...@li...> >>List-Help: >><mailto:dia...@li...?subject=help> >>List-Subscribe: >><https://lists.sourceforge.net/lists/listinfo/dia2code-general>,<mailto:dia...@li...?subject=subscribe> >>List-Archive: >><http://sourceforge.net/mailarchive/forum.php?forum=dia2code-general> >>X-Original-Date: Tue, 16 Mar 2004 10:16:23 +0100 >>Return-Path: dia...@li... >>X-OriginalArrivalTime: 16 Mar 2004 09:23:42.0531 (UTC) >>FILETIME=[5FB9E930:01C40B38] >> >> >>Hello, >> >>Here is a preliminary dia2code version that preserve the methods source >>code. >> >>I've only adapted java and php generators for now. In order to make it >>work, >>you must add a @diaoid <oid> tag in the methods comment field. >><oid> must be unique for a method in a class, and may be any string >>without >>spacing character, eg. you can use method name or a number: >>"My method description - @diaoid setList" >>"My method description - @diaoid m001" >> >>This should be a temporary constraint as iasked the dia developer team to >>add >>an oid attribute to methods and attributes in dia XML format. I've >>included >>for a sample diagram under tests/categories.dia. >> >>I fixed some segfaults, among which a tricky one in parse_diagram.c due to >>a >><parent> tag in (i guess recent) dia XML. >> >>I've added an hidden --debug <level> switch to show a few informations >>about >>the generation process. >> >>Most of the code parsing stuff is in source_parser.c (new file). It is >>very >>basic for now, a major "Todo" is to interprets comments and quoted strings >>correctly. >> >>As the list may not accept attachements, you can get the tarball >>@ http://lwest.free.fr/dia2code-codepreserve.tgz >> >>I also have a question about dia2ode history: what is the right way to >>output >>code , as there are so many functions to do that (d2c_printf, emit, >>fprintf....) >> >> >>--Leo >> >> >> >>------------------------------------------------------- >>This SF.Net email is sponsored by: IBM Linux Tutorials >>Free Linux tutorial presented by Daniel Robbins, President and CEO of >>GenToo technologies. Learn everything from fundamentals to system >>administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click >>_______________________________________________ >>Dia2code-general mailing list >>Dia...@li... >>https://lists.sourceforge.net/lists/listinfo/dia2code-general > >_________________________________________________________________ >MSN Toolbar provides one-click access to Hotmail from any Web page FREE >download! http://clk.atdmt.com/AVE/go/onm00200413ave/direct/01/ > > > >------------------------------------------------------- >This SF.Net email is sponsored by: IBM Linux Tutorials >Free Linux tutorial presented by Daniel Robbins, President and CEO of >GenToo technologies. Learn everything from fundamentals to system >administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click >_______________________________________________ >Dia2code-general mailing list >Dia...@li... >https://lists.sourceforge.net/lists/listinfo/dia2code-general _________________________________________________________________ Find a broadband plan that fits. Great local deals on high-speed Internet access. http://click.atdmt.com/AVE/go/onm00200360ave/direct/01/ |
From: Robert K. <rik...@ho...> - 2004-03-18 21:47:14
|
Leo, Take a look at the code preservation in the C++ module, which, while a bit more cumbersome than the Java and PHP implementation which you implement, is arguably closer to being useful across more programming languages. Better to have a single implementation of code preservation across dia2code than several -- this is why it's already so difficult to use, no programming language implementation shares anything but the most basic functionality, and fundamentally operates in a vacuum. I wrote d2c_fprintf -- once again look at the C++ implementation to get a sense of how it works: It works with some other functions (whose names escape me for the moment) that are an attempt to abstract out some of the source-code indentation issues. So my advise is, use d2c_fprintf, but look at how the C++ generator handles brackets, and follow accordingly (oh, now I remmeber, I think the name of the functions are d2c_indent and d2c_unindent.) See, d2c_fprintf knows how much you've indented, so it replaces \n with \n, followed by the correct number of spaces to indent your code for you. Really, the C++ code is a template for how that stuff will work. Rob >From: Leonard WEST <le...@ne...> >Reply-To: le...@ne... >To: dia...@li... >Subject: [Dia2code-general] Request fo comment - a simple code preservation >implementation >Date: Tue, 16 Mar 2004 10:16:23 +0100 >MIME-Version: 1.0 >Received: from sc8-sf-list1.sourceforge.net ([66.35.250.206]) by >mc9-f20.hotmail.com with Microsoft SMTPSVC(5.0.2195.6824); Tue, 16 Mar 2004 >01:23:39 -0800 >Received: from localhost ([127.0.0.1] helo=projects.sourceforge.net)by >sc8-sf-list1.sourceforge.net with esmtp (Exim 4.30)id 1B3AjU-0004cp-2M; >Tue, 16 Mar 2004 01:19:32 -0800 >Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.12] >helo=sc8-sf-mx2.sourceforge.net)by sc8-sf-list1.sourceforge.net with esmtp >(Exim 4.30)id 1B3Afs-0003yW-Iwfor dia...@li...; >Tue, 16 Mar 2004 01:15:48 -0800 >Received: from smtp1.ldcom.fr ([62.39.9.135])by sc8-sf-mx2.sourceforge.net >with esmtp (Exim 4.30)id 1B3Afq-0001yX-SDfor >dia...@li...; Tue, 16 Mar 2004 01:15:47 -0800 >Received: from smtp1.ldcom.fr (localhost [127.0.0.1])by >smtp1.smtp1.ldcom.fr (Postfix) with ESMTP id 81F6D26827Efor ><dia...@li...>; Tue, 16 Mar 2004 10:13:49 +0100 >(MET) >Received: from nr0s0086.servgamma.9telecom.fr >(nr0s0086e0.servgamma.9telecom.fr [10.149.56.136])by smtp1.ldcom.fr >(Postfix) with ESMTP id 5F2E7268012for ><dia...@li...>; Tue, 16 Mar 2004 10:13:49 +0100 >(MET) >Received: from lcopar-cpla.ldcom.fr (lcopar_cpla.blg.ldcom.ld >[10.192.224.127]) by nr0s0086.servgamma.9telecom.fr with SMTP (Microsoft >Exchange Internet Mail Service Version 5.5.2653.13)id G03PW94Q; Tue, 16 Mar >2004 10:16:09 +0100 >Received: from [10.151.17.4] (helo=ianan)by lcopar-cpla.ldcom.fr with esmtp >(Exim 3.36 #1 (Debian))id 1B3Afe-0004ub-00for ><dia...@li...>; Tue, 16 Mar 2004 10:15:34 +0100 >X-Message-Info: JGTYoYF78jGIxTwXWrZZCrh1bHigeMbB >User-Agent: KMail/1.6.1 >Message-Id: <200...@ne...> >X-Spam-Score: 0.0 (/) >X-Spam-Report: Spam Filtering performed by sourceforge.net.See >http://spamassassin.org/tag/ for more details.Report problems to >http://sf.net/tracker/?func=add&group_id=1&atid=200001 >Errors-To: dia...@li... >X-BeenThere: dia...@li... >X-Mailman-Version: 2.0.9-sf.net >Precedence: bulk >List-Unsubscribe: ><https://lists.sourceforge.net/lists/listinfo/dia2code-general>,<mailto:dia...@li...?subject=unsubscribe> >List-Id: General Dia2Code discussion ><dia2code-general.lists.sourceforge.net> >List-Post: <mailto:dia...@li...> >List-Help: ><mailto:dia...@li...?subject=help> >List-Subscribe: ><https://lists.sourceforge.net/lists/listinfo/dia2code-general>,<mailto:dia...@li...?subject=subscribe> >List-Archive: ><http://sourceforge.net/mailarchive/forum.php?forum=dia2code-general> >X-Original-Date: Tue, 16 Mar 2004 10:16:23 +0100 >Return-Path: dia...@li... >X-OriginalArrivalTime: 16 Mar 2004 09:23:42.0531 (UTC) >FILETIME=[5FB9E930:01C40B38] > > >Hello, > >Here is a preliminary dia2code version that preserve the methods source >code. > >I've only adapted java and php generators for now. In order to make it >work, >you must add a @diaoid <oid> tag in the methods comment field. ><oid> must be unique for a method in a class, and may be any string without >spacing character, eg. you can use method name or a number: >"My method description - @diaoid setList" >"My method description - @diaoid m001" > >This should be a temporary constraint as iasked the dia developer team to >add >an oid attribute to methods and attributes in dia XML format. I've included >for a sample diagram under tests/categories.dia. > >I fixed some segfaults, among which a tricky one in parse_diagram.c due to >a ><parent> tag in (i guess recent) dia XML. > >I've added an hidden --debug <level> switch to show a few informations >about >the generation process. > >Most of the code parsing stuff is in source_parser.c (new file). It is very >basic for now, a major "Todo" is to interprets comments and quoted strings >correctly. > >As the list may not accept attachements, you can get the tarball >@ http://lwest.free.fr/dia2code-codepreserve.tgz > >I also have a question about dia2ode history: what is the right way to >output >code , as there are so many functions to do that (d2c_printf, emit, >fprintf....) > > >--Leo > > > >------------------------------------------------------- >This SF.Net email is sponsored by: IBM Linux Tutorials >Free Linux tutorial presented by Daniel Robbins, President and CEO of >GenToo technologies. Learn everything from fundamentals to system >administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click >_______________________________________________ >Dia2code-general mailing list >Dia...@li... >https://lists.sourceforge.net/lists/listinfo/dia2code-general _________________________________________________________________ MSN Toolbar provides one-click access to Hotmail from any Web page FREE download! http://clk.atdmt.com/AVE/go/onm00200413ave/direct/01/ |
From: Leonard W. <le...@ne...> - 2004-03-16 09:15:49
|
Hello, Here is a preliminary dia2code version that preserve the methods source code. I've only adapted java and php generators for now. In order to make it work, you must add a @diaoid <oid> tag in the methods comment field. <oid> must be unique for a method in a class, and may be any string without spacing character, eg. you can use method name or a number: "My method description - @diaoid setList" "My method description - @diaoid m001" This should be a temporary constraint as iasked the dia developer team to add an oid attribute to methods and attributes in dia XML format. I've included for a sample diagram under tests/categories.dia. I fixed some segfaults, among which a tricky one in parse_diagram.c due to a <parent> tag in (i guess recent) dia XML. I've added an hidden --debug <level> switch to show a few informations about the generation process. Most of the code parsing stuff is in source_parser.c (new file). It is very basic for now, a major "Todo" is to interprets comments and quoted strings correctly. As the list may not accept attachements, you can get the tarball @ http://lwest.free.fr/dia2code-codepreserve.tgz I also have a question about dia2ode history: what is the right way to output code , as there are so many functions to do that (d2c_printf, emit, fprintf....) --Leo |
From: Robert K. <ro...@br...> - 2004-02-09 15:39:16
|
Can someone explain to me what is_present() in dia2code.c is doing? Thanks, Rob |
From: Robert K. <ro...@br...> - 2004-02-07 16:51:42
|
In function is_present: This can't be right, can it? if ( (len = strlen(list->name)) && (2 <= len <= strlen(name)) Thanks, Rob |
From: Robert K. <ro...@br...> - 2003-10-25 18:49:25
|
Don't know much about that. Knock yourself out! -----Original Message----- From: Nicholas Palmer [mailto:nic...@sl...] Sent: Saturday, October 25, 2003 1:21 PM To: Nicholas Palmer Cc: Robert Konigsberg; dia...@li... Subject: Re: [Dia2code-general] Another dia2code idea. -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Nicholas Palmer wrote: | You are correct. It does in fact preserve the implementation | automagically for java. I didn't even think to try it. Thanks for the | tip. It might be nice if the man page mentioned this feature. Note however, there is a bit of inconsistency. If you are using the JavaBeans stereotype it generates all the get and set methods, but does not preserve modified implmentation for those. This is something I will try to fix. - -Nick -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQE/mrENR42/Somtp0QRAjVvAJ4ijVnmYPJCY0XX2yiEbzQawBpexACfXbGL QPqRz7Q2+04WVB8YonheYQw= =CSW+ -----END PGP SIGNATURE----- |
From: Nicholas P. <nic...@sl...> - 2003-10-25 17:27:09
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Nicholas Palmer wrote: | You are correct. It does in fact preserve the implementation | automagically for java. I didn't even think to try it. Thanks for the | tip. It might be nice if the man page mentioned this feature. Note however, there is a bit of inconsistency. If you are using the JavaBeans stereotype it generates all the get and set methods, but does not preserve modified implmentation for those. This is something I will try to fix. - -Nick -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQE/mrENR42/Somtp0QRAjVvAJ4ijVnmYPJCY0XX2yiEbzQawBpexACfXbGL QPqRz7Q2+04WVB8YonheYQw= =CSW+ -----END PGP SIGNATURE----- |
From: Nicholas P. <nic...@sl...> - 2003-10-25 07:20:15
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Robert Konigsberg wrote: | Java currently has something to that effect, but it's been a while since I | did it so I can't recall the details. Let me know if you want me to peruse | the code. No big deal. You are correct. It does in fact preserve the implementation automagically for java. I didn't even think to try it. Thanks for the tip. It might be nice if the man page mentioned this feature. On to outputing comments in the comments. :) - -Nick -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQE/miK2R42/Somtp0QRAs/zAJ9aoTAO8nfaww4cjJFo6ypQu1mytgCfYjRH GTGG12LL9MFkOE1Ozs1gzhA= =gqUM -----END PGP SIGNATURE----- |
From: Robert K. <rik...@ho...> - 2003-10-25 06:29:10
|
Java currently has something to that effect, but it's been a while since I did it so I can't recall the details. Let me know if you want me to peruse the code. No big deal. ----- Original Message ----- From: "Nicholas Palmer" <nic...@sl...> To: <dia...@li...> Sent: Friday, October 24, 2003 8:25 PM Subject: [Dia2code-general] Another dia2code idea. > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hey All, > > I just thought of another idea that would greatly improve the utility of > dia2code. > > Dia2code can currently only be used to generate an initial version of > code easily, as regenerating would require a coder to cut and paste all > method bodys. > > But what if dia2code added special comments at the begining and end of > the body of any methods that are not abstract. Then when dia2code is > generating code it could open the current version of the file, make a > backup of that file, and then merge the body of any methods from the > current version into the new version. This would allow it to regenerate > the code if a new method were created without all the cut and paste. > > If parameteres changed obviously a human would have to copy and paste > from the backup of the old version, but that is still better than having > to copy and paste every method body. > > Thoughts on this idea? Sorry if it has been discussed before. > > - -Nick > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.1 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQE/mcMQR42/Somtp0QRAvjSAKCD5eC2olDz0x6BaJy+SFGgP+7ydACdEptL > 0AnNCgKjER+qHEWXmwxeAlM= > =mbDl > -----END PGP SIGNATURE----- > > > > ------------------------------------------------------- > This SF.net email is sponsored by: The SF.net Donation Program. > Do you like what SourceForge.net is doing for the Open > Source Community? Make a contribution, and help us add new > features and functionality. Click here: http://sourceforge.net/donate/ > _______________________________________________ > Dia2code-general mailing list > Dia...@li... > https://lists.sourceforge.net/lists/listinfo/dia2code-general > |
From: Nicholas P. <nic...@sl...> - 2003-10-25 00:30:47
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hey All, I just thought of another idea that would greatly improve the utility of dia2code. Dia2code can currently only be used to generate an initial version of code easily, as regenerating would require a coder to cut and paste all method bodys. But what if dia2code added special comments at the begining and end of the body of any methods that are not abstract. Then when dia2code is generating code it could open the current version of the file, make a backup of that file, and then merge the body of any methods from the current version into the new version. This would allow it to regenerate the code if a new method were created without all the cut and paste. If parameteres changed obviously a human would have to copy and paste from the backup of the old version, but that is still better than having to copy and paste every method body. Thoughts on this idea? Sorry if it has been discussed before. - -Nick -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQE/mcMQR42/Somtp0QRAvjSAKCD5eC2olDz0x6BaJy+SFGgP+7ydACdEptL 0AnNCgKjER+qHEWXmwxeAlM= =mbDl -----END PGP SIGNATURE----- |