<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent posts to Discussion</title><link>https://sourceforge.net/p/dia2code/discussion/</link><description>Recent posts to Discussion</description><atom:link href="https://sourceforge.net/p/dia2code/discussion/feed.rss" rel="self"/><language>en</language><lastBuildDate>Thu, 09 Nov 2017 22:13:28 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/dia2code/discussion/feed.rss" rel="self" type="application/rss+xml"/><item><title>Stabilization</title><link>https://sourceforge.net/p/dia2code/discussion/48621/thread/cbe6bebd/?limit=25#8c88</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I just made a "big" commit about stabilization. Lot of wrong files creates lot of null dereference and other bugs.&lt;/p&gt;
&lt;p&gt;Please, scream if I broke something. make check still working.&lt;/p&gt;
&lt;p&gt;By the way, I will be happy if I could add some tests for ada and python. I never used them. For example, python looks to handle abstract method with library abc and annotation.&lt;/p&gt;
&lt;p&gt;If someone may write the result for each test : just add python or ada in tests.sh, run make check and correct all .python.fail or .ada.fail. Please post the result, I will take in charge the modification in GenerateCodeAda.cpp and GenerateCodePython.cpp.&lt;/p&gt;
&lt;p&gt;Regards.&lt;br/&gt;
Vincent&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">LE GARREC Vincent</dc:creator><pubDate>Thu, 09 Nov 2017 22:13:28 -0000</pubDate><guid>https://sourceforge.netdebcb000e2ca0c29926e6f1286b13b56467a2ebd</guid></item><item><title>Dia2Code+ C++ generation</title><link>https://sourceforge.net/p/dia2code/discussion/48622/thread/b781f392/?limit=25#2c48</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
Thanks for your quick reply.&lt;br/&gt;
Ok I was misled by the documentation : &lt;a class="" href="https://sourceforge.net/projects/dia2code/files/dia2code%2B/1.0.0/"&gt;Here&lt;/a&gt;&lt;br/&gt;
In the examples section :&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;$ dia2code -t cpp -nc -d ~/C++ hw.dia &lt;br/&gt;
 Will generate the &lt;em&gt;.cpp and &lt;/em&gt;.h files for the classes in the test.dia diagram and put them in the directory ~/C++. It won't overwrite any existant file.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Regards,&lt;br/&gt;
gilou&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">gilou</dc:creator><pubDate>Thu, 20 Apr 2017 15:12:50 -0000</pubDate><guid>https://sourceforge.net72af33d6392c1f71db53f74aa6418355f7c109e2</guid></item><item><title>Dia2Code+ C++ generation</title><link>https://sourceforge.net/p/dia2code/discussion/48622/thread/b781f392/?limit=25#7831</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;dia2code only generates header. It doesn't generate prototype in source file.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">LE GARREC Vincent</dc:creator><pubDate>Thu, 20 Apr 2017 15:03:04 -0000</pubDate><guid>https://sourceforge.netbda43d9f2b023936b31a74c0ed3147885b51f258</guid></item><item><title>Dia2Code+ C++ generation</title><link>https://sourceforge.net/p/dia2code/discussion/48622/thread/b781f392/?limit=25#0cbf</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hello all,&lt;br/&gt;
Thank you for your work, I'm happy to use this new version plugin. I'm learning UML for C++ project and it's simple with dia. So my question is : I've draw a class diagram and I try to generate .cpp and .hpp files but dia2code+ give me only .hpp files.&lt;/p&gt;
&lt;p&gt;I've tried the command : dia2code -t cpp -d C++/ diagram.dia&lt;/p&gt;
&lt;p&gt;.hpp files generation are already a great help.&lt;br/&gt;
That come probably from my diagram but I don't know why. I've tryed the example1.dia from dia's example and it's the same.&lt;br/&gt;
I can send you my diagram if needed.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br/&gt;
gilou&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">gilou</dc:creator><pubDate>Wed, 19 Apr 2017 16:53:45 -0000</pubDate><guid>https://sourceforge.netc13cf55b0d4b8e9ece01569a2f30e17aadd9fefc</guid></item><item><title>Refactoring dia2code</title><link>https://sourceforge.net/p/dia2code/discussion/48621/thread/55447541/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Maybe I spoked too fast. I think that both ways to implement interface should be keep.&lt;br /&gt;
Please find enclosed an example where two classes implement the same Interface. With Classe2, the class Interface will be needed even if no direct connection are made.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">LE GARREC Vincent</dc:creator><pubDate>Fri, 06 Mar 2015 18:03:47 -0000</pubDate><guid>https://sourceforge.net6dac825d54fb54279698d10a08240520a1d2dea4</guid></item><item><title>Refactoring dia2code</title><link>https://sourceforge.net/p/dia2code/discussion/48621/thread/55447541/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I'm thinking about implement interface. Dia2code 0.8 have it so it's necessary that the new one have it too.&lt;br /&gt;
Actually, Realization and Generalization are doing the same thing: inheritance. Implements are doing an other (lolipopImplementation function. I don't have tested it and I don't really know what it's doing).&lt;/p&gt;
&lt;p&gt;I would like to change it:&lt;br /&gt;
Realization will implement an interface (implements in java). If a class in pointed by a realization link, it will automatically be converted from class to interface,&lt;br /&gt;
Generalization will create an inheritance (extends in java),&lt;br /&gt;
Implement (with function lolipopImplementation): don't know what it's doing. Remove this feature.&lt;br /&gt;
Source: &lt;a href="http://www.informit.com/articles/article.aspx?p=29224&amp;amp;seqNum=2" rel="nofollow"&gt;http://www.informit.com/articles/article.aspx?p=29224&amp;amp;seqNum=2&lt;/a&gt; and Fig 4 and 5.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">LE GARREC Vincent</dc:creator><pubDate>Wed, 04 Mar 2015 11:35:37 -0000</pubDate><guid>https://sourceforge.net304b931b60fb6d54e3c8b7ed1f18cea75c3e900b</guid></item><item><title>Refactoring dia2code</title><link>https://sourceforge.net/p/dia2code/discussion/48621/thread/55447541/</link><description>&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;I'm trying to add const stereotype for Java but I have a problem:&lt;br /&gt;
Actually, in C++ generator the result is:&lt;br /&gt;
const type constance = 150;&lt;br /&gt;
constance is the name of the "transformed class", type is the Type&lt;br /&gt;
of the first attribute and 150 is the Value of the first attribute.&lt;br /&gt;
The name of the first attribute is ignored and the other attributes&lt;br /&gt;
are also ignored.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Hmmm... I think there is no straight forward answer because the programming languages are so different with respect to constants.&lt;/p&gt;
&lt;p&gt;The question is whether we want to support package level constants.&lt;br /&gt;
Doing that would create a problem for Java because there is no such thing as a package level constant in Java.&lt;/p&gt;
&lt;p&gt;Therefore I would suggest that we only support constants within classes.&lt;br /&gt;
Then, applying the «const» or «constant» to an attribute would produce a constant within the class. In this case, the attribute name becomes the constant name and the attribute default value becomes the constant value.&lt;/p&gt;
&lt;p&gt;In C, one would probably ignore the class name.&lt;br /&gt;
(IMHO, doing UML with C language target is not a very good match to start with...)&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Oliver Kellogg</dc:creator><pubDate>Thu, 19 Feb 2015 18:15:37 -0000</pubDate><guid>https://sourceforge.net49d1120c2d5d16f42d0fa998e80ba187a16ac5b9</guid></item><item><title>Refactoring dia2code</title><link>https://sourceforge.net/p/dia2code/discussion/48621/thread/55447541/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Done. But the change of name is only effective with -1 argument (one class one header, so by default for java).&lt;/p&gt;
&lt;p&gt;If you have other idea, you're welcome.&lt;/p&gt;
&lt;p&gt;PS: if you have an opinion about &lt;a href="https://sourceforge.net/p/dia2code/discussion/48621/thread/55447541/?page=1#0858/2bd5/7ba0"&gt;https://sourceforge.net/p/dia2code/discussion/48621/thread/55447541/?page=1#0858/2bd5/7ba0&lt;/a&gt; …&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">LE GARREC Vincent</dc:creator><pubDate>Wed, 18 Feb 2015 22:32:23 -0000</pubDate><guid>https://sourceforge.net6b48fc95c41654f70a19c9ff57e691ef246bf84f</guid></item><item><title>Refactoring dia2code</title><link>https://sourceforge.net/p/dia2code/discussion/48621/thread/55447541/</link><description>&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;About changing convention of filename, are you sure that's a good idea?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Actually, the idea comes form the GCC Ada compiler (GNAT), more precisely from its file naming convention for child units.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;This will create long name no?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;In practise, I haven't felt this to be a problem.&lt;br /&gt;
Of course, if you have &lt;code&gt;a_long_package_name&lt;/code&gt; with &lt;code&gt;an_even_longer_nested_package_name&lt;/code&gt; containing &lt;code&gt;an_embedded_class&lt;/code&gt;, then you will have&lt;br /&gt;
    a_long_package_name-an_even_longer_nested_package_name-an_embedded_class.hpp&lt;br /&gt;
instead of just an_embedded_class.hpp.&lt;br /&gt;
The advantage is that the file name directly reflects the package names.&lt;br /&gt;
Which could be an advantage when dealing with same named classes in different packages.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Oliver Kellogg</dc:creator><pubDate>Sun, 15 Feb 2015 23:02:03 -0000</pubDate><guid>https://sourceforge.net127bc2eb55ba591443019e14b52450626aeb3a5f</guid></item><item><title>Refactoring dia2code</title><link>https://sourceforge.net/p/dia2code/discussion/48621/thread/55447541/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Done. I finished the C# generator.&lt;/p&gt;
&lt;p&gt;About changing convention of filename, are you sure that's a good idea? This will create long name no?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">LE GARREC Vincent</dc:creator><pubDate>Sun, 15 Feb 2015 14:09:41 -0000</pubDate><guid>https://sourceforge.net6402f77db43eeaaed19ecefbc1b3f9a4b8243070</guid></item></channel></rss>