Re: [fpc-pascal] Generating code form xmi files
Hi! Am Sonntag, den 05.04.2009, 21:47 -0700 schrieb leledumbo: Err... how to use this codegen thing? Do I need to run it over Dia generated diagrams or what? Sorry, I don't understand Python. Replace the installed codegen.py file by the one at the mentioned URL below. Then delete codegen.pyc (its compiled). You can run py_compilefiles codegen.py to create a new compiled version. If you restart Dia with the new file, in the File-Export menu you get an additional export type Pascal. Bye Hansi ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Generating code form xmi files
It seem there is nothing available. If it is confirmed, I'll try to write something. I'll have a lot of time because I'm stoping World of Wordcraft :) Philippe ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Generating code form xmi files
Graeme Geldenhuys schrieb: I currently use Dia Diagram editor to design UML diagrams, but as far as I know it does generate any code. :-( Try http://www.uni-ulm.de/~s_mgerla/dia2pas.html mfg Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Generating code form xmi files
http://www.opensubscriber.com/message/dia-l...@gnome.org/11515637.html Em Dom, 2009-04-05 às 11:05 +0200, Michael Fuchs escreveu: Graeme Geldenhuys schrieb: I currently use Dia Diagram editor to design UML diagrams, but as far as I know it does generate any code. :-( Try http://www.uni-ulm.de/~s_mgerla/dia2pas.html mfg Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Generating code form xmi files
Hi! Am Sonntag, den 05.04.2009, 11:24 -0300 schrieb Osvaldo Filho: http://www.opensubscriber.com/message/dia-l...@gnome.org/11515637.html The current version is available at http://k7103.svn.sourceforge.net/viewvc/k7103/branch/ng/dia-codegen/ Bye Hansi ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Generating code form xmi files
Err... how to use this codegen thing? Do I need to run it over Dia generated diagrams or what? Sorry, I don't understand Python. Johann Glaser wrote: Hi! Am Sonntag, den 05.04.2009, 11:24 -0300 schrieb Osvaldo Filho: http://www.opensubscriber.com/message/dia-l...@gnome.org/11515637.html The current version is available at http://k7103.svn.sourceforge.net/viewvc/k7103/branch/ng/dia-codegen/ Bye Hansi ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal -- View this message in context: http://www.nabble.com/Generating-code-form-xmi-files-tp22848439p22902133.html Sent from the Free Pascal - General mailing list archive at Nabble.com. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Generating code form xmi files
Am Freitag, den 03.04.2009, 11:24 +0200 schrieb Graeme Geldenhuys: I currently use Dia Diagram editor to design UML diagrams, but as far as I know it does generate any code. :-( http://dia2code.sourceforge.net/ -- Marc Santhoff m.santh...@web.de ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Generating code form xmi files
On Sat, 4 Apr 2009, Marc Santhoff wrote: Am Freitag, den 03.04.2009, 11:24 +0200 schrieb Graeme Geldenhuys: I currently use Dia Diagram editor to design UML diagrams, but as far as I know it does generate any code. :-( http://dia2code.sourceforge.net/ Again no pascal :( Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Generating code form xmi files
Found some things on the net about Delphi and XMI, wouldn't be hard to create FPC equivalent. Something named Bold from BoldSoft (or ECO or whatever). -- View this message in context: http://www.nabble.com/Generating-code-form-xmi-files-tp22848439p22864324.html Sent from the Free Pascal - General mailing list archive at Nabble.com. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Generating code form xmi files
On Thu, Apr 2, 2009 at 10:05 PM, Philippe Martinole philippe.martin...@teleauto.org wrote: xmi files (not xml) are used to save uml models : http://en.wikipedia.org/wiki/XML_Metadata_Interchange and I want to gererate my data structures from my uml diagrams I would be suprised if nothing already exists I've been looking for something like this for a long time and haven't fond anything for Free Pascal / Lazarus. You can obviously use Model Maker and simply tweak the generated object pascal code to make sure they are compilable with FPC. But I believe Model Maker is quite pricey. Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Generating code form xmi files
On Fri, 3 Apr 2009, Graeme Geldenhuys wrote: On Thu, Apr 2, 2009 at 10:05 PM, Philippe Martinole philippe.martin...@teleauto.org wrote: xmi files (not xml) are used to save uml models : http://en.wikipedia.org/wiki/XML_Metadata_Interchange and I want to gererate my data structures from my uml diagrams I would be suprised if nothing already exists I've been looking for something like this for a long time and haven't fond anything for Free Pascal / Lazarus. You can obviously use Model Maker and simply tweak the generated object pascal code to make sure they are compilable with FPC. But I believe Model Maker is quite pricey. Well, Umbrello (Open source, comes with KDE) can generate code from XMI for various languages (C,C++,PHP, Java) except pascal. All you need to do is write an output engine for pascal. It is on my todo list, item no. 132.458 :-) Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Generating code form xmi files
On Fri, 3 Apr 2009, Michael Van Canneyt wrote: On Fri, 3 Apr 2009, Graeme Geldenhuys wrote: On Thu, Apr 2, 2009 at 10:05 PM, Philippe Martinole philippe.martin...@teleauto.org wrote: xmi files (not xml) are used to save uml models : http://en.wikipedia.org/wiki/XML_Metadata_Interchange and I want to gererate my data structures from my uml diagrams I would be suprised if nothing already exists I've been looking for something like this for a long time and haven't fond anything for Free Pascal / Lazarus. You can obviously use Model Maker and simply tweak the generated object pascal code to make sure they are compilable with FPC. But I believe Model Maker is quite pricey. Well, Umbrello (Open source, comes with KDE) can generate code from XMI for various languages (C,C++,PHP, Java) except pascal. All you need to do is write an output engine for pascal. Correction. It seems to have been implemented... I must urgently upgrade my KDE :-) Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Generating code form xmi files
On Fri, Apr 3, 2009 at 11:25 AM, Michael Van Canneyt mich...@freepascal.org wrote: Bummer. It writes old TP-Style object class definitions. Bummer. :-( Well, at least now you will have template code in umbrello to work from to implement true Object Pascal class types. ;-) Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Generating code form xmi files
On Fri, Apr 3, 2009 at 11:32 AM, Frank Peelo f...@eircom.net wrote: It is on my todo list, item no. 132.458 :-) Do you *only* have 132 todo items - lucky you ! :-) In /his/ locale, he writes '.' I know - my smiley face has a double meaning. Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Generating code form xmi files
On Fri, Apr 3, 2009 at 10:51 AM, Michael Van Canneyt mich...@freepascal.org wrote: Well, Umbrello (Open source, comes with KDE) can generate code from XMI for various languages (C,C++,PHP, Java) except pascal. All you need to do is write an output engine for pascal. It is on my todo list, item no. 132.458 :-) I currently use Dia Diagram editor to design UML diagrams, but as far as I know it does generate any code. :-( I haven't tried Umbrello in years. I'll give that another try and see how things have improved over the last few years. Do you *only* have 132 todo items - lucky you ! :-) Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Generating code form xmi files
On Fri, 3 Apr 2009, Michael Van Canneyt wrote: On Fri, 3 Apr 2009, Michael Van Canneyt wrote: On Fri, 3 Apr 2009, Graeme Geldenhuys wrote: On Thu, Apr 2, 2009 at 10:05 PM, Philippe Martinole philippe.martin...@teleauto.org wrote: xmi files (not xml) are used to save uml models : http://en.wikipedia.org/wiki/XML_Metadata_Interchange and I want to gererate my data structures from my uml diagrams I would be suprised if nothing already exists I've been looking for something like this for a long time and haven't fond anything for Free Pascal / Lazarus. You can obviously use Model Maker and simply tweak the generated object pascal code to make sure they are compilable with FPC. But I believe Model Maker is quite pricey. Well, Umbrello (Open source, comes with KDE) can generate code from XMI for various languages (C,C++,PHP, Java) except pascal. All you need to do is write an output engine for pascal. Correction. It seems to have been implemented... I must urgently upgrade my KDE :-) Bummer. It writes old TP-Style object class definitions. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Generating code form xmi files
Zitat von Michael Van Canneyt mich...@freepascal.org: On Fri, 3 Apr 2009, Graeme Geldenhuys wrote: On Thu, Apr 2, 2009 at 10:05 PM, Philippe Martinole philippe.martin...@teleauto.org wrote: xmi files (not xml) are used to save uml models : http://en.wikipedia.org/wiki/XML_Metadata_Interchange and I want to gererate my data structures from my uml diagrams I would be suprised if nothing already exists I've been looking for something like this for a long time and haven't fond anything for Free Pascal / Lazarus. You can obviously use Model Maker and simply tweak the generated object pascal code to make sure they are compilable with FPC. But I believe Model Maker is quite pricey. Well, Umbrello (Open source, comes with KDE) can generate code from XMI for various languages (C,C++,PHP, Java) except pascal. All you need to do is write an output engine for pascal. It is on my todo list, item no. 132.458 :-) I just tested Umbrello and I got the impression it is very C++-centric - the dialogs, the options, the code. For example I don't see how to setup free pascal properties - it seems to have only basic variables as attributes. Is this a shortcoming of UML in general? Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Generating code form xmi files
On Fri, 3 Apr 2009, Mattias Gärtner wrote: Zitat von Michael Van Canneyt mich...@freepascal.org: On Fri, 3 Apr 2009, Graeme Geldenhuys wrote: On Thu, Apr 2, 2009 at 10:05 PM, Philippe Martinole philippe.martin...@teleauto.org wrote: xmi files (not xml) are used to save uml models : http://en.wikipedia.org/wiki/XML_Metadata_Interchange and I want to gererate my data structures from my uml diagrams I would be suprised if nothing already exists I've been looking for something like this for a long time and haven't fond anything for Free Pascal / Lazarus. You can obviously use Model Maker and simply tweak the generated object pascal code to make sure they are compilable with FPC. But I believe Model Maker is quite pricey. Well, Umbrello (Open source, comes with KDE) can generate code from XMI for various languages (C,C++,PHP, Java) except pascal. All you need to do is write an output engine for pascal. It is on my todo list, item no. 132.458 :-) I just tested Umbrello and I got the impression it is very C++-centric - the dialogs, the options, the code. For example I don't see how to setup free pascal properties - it seems to have only basic variables as attributes. Is this a shortcoming of UML in general? No, I don't think so; But the 'pascal' implementation is very rudimentary, for instance there is no 'published' visibility. if you look at the language specific options, you'll see that the pascal language has no options yet. I would expect that one could put some pascal-specific things there. I expect it'll be up to us to provide this :( I use umbrello extensively for the diagrams till now, it would of course be nice to have it import/export pascal code as well. So, it remains on my todo list. But maybe if interest is raised enough, someone with more time/pressing needs will do it before me :-) Michael.___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Generating code form xmi files
We could work on it. Perhaps any one cold start a project for that. And others help. My English and my knowledge in C++ is very pour. But i help any one do it. 2009/4/3 Michael Van Canneyt mich...@freepascal.org On Fri, 3 Apr 2009, Mattias Gärtner wrote: Zitat von Michael Van Canneyt mich...@freepascal.org: On Fri, 3 Apr 2009, Graeme Geldenhuys wrote: On Thu, Apr 2, 2009 at 10:05 PM, Philippe Martinole philippe.martin...@teleauto.org wrote: xmi files (not xml) are used to save uml models : http://en.wikipedia.org/wiki/XML_Metadata_Interchange and I want to gererate my data structures from my uml diagrams I would be suprised if nothing already exists I've been looking for something like this for a long time and haven't fond anything for Free Pascal / Lazarus. You can obviously use Model Maker and simply tweak the generated object pascal code to make sure they are compilable with FPC. But I believe Model Maker is quite pricey. Well, Umbrello (Open source, comes with KDE) can generate code from XMI for various languages (C,C++,PHP, Java) except pascal. All you need to do is write an output engine for pascal. It is on my todo list, item no. 132.458 :-) I just tested Umbrello and I got the impression it is very C++-centric - the dialogs, the options, the code. For example I don't see how to setup free pascal properties - it seems to have only basic variables as attributes. Is this a shortcoming of UML in general? No, I don't think so; But the 'pascal' implementation is very rudimentary, for instance there is no 'published' visibility. if you look at the language specific options, you'll see that the pascal language has no options yet. I would expect that one could put some pascal-specific things there. I expect it'll be up to us to provide this :( I use umbrello extensively for the diagrams till now, it would of course be nice to have it import/export pascal code as well. So, it remains on my todo list. But maybe if interest is raised enough, someone with more time/pressing needs will do it before me :-) Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Generating code form xmi files
On 02 Apr 2009, at 15:56, philippe.martin...@teleauto.org wrote: Do you know if some code allready exist to generate Pascal code form xmi files ? What do you mean by generating Pascal code from xml files? Pascal code describes an algorithm, while xml files usually describe data. Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Generating code form xmi files
On 2 Apr 09, at 20:27, Jonas Maebe wrote: On 02 Apr 2009, at 15:56, philippe.martin...@teleauto.org wrote: Do you know if some code allready exist to generate Pascal code form xmi files ? What do you mean by generating Pascal code from xml files? Pascal code describes an algorithm, while xml files usually describe data. Well, XMI files, i.e. files used for exporting/storing various UML diagrams, are often supported by code generators. As an example, you could certainly generate Object Pascal classes from a UML class diagram. However, most generators only support Java and C++, that's probably the reason of this question. I cannot answer the question myself though. Tomas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Generating code form xmi files
Do you know if some code allready exist to generate Pascal code form xmi files ? What do you mean by generating Pascal code from xml files? Pascal code describes an algorithm, while xml files usually describe data. xmi files (not xml) are used to save uml models : http://en.wikipedia.org/wiki/XML_Metadata_Interchange and I want to gererate my data structures from my uml diagrams I would be suprised if nothing already exists Philippe ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal