Do you know if some code allready exist to generate Pascal code form xmi files ?
Best regards
Philippe

Mailing lists / fpc-pascal / 2009-04
25 messages · 13 people · –
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Do you know if some code allready exist to generate Pascal code form xmi files ?
Best regards
Philippe
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
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
What do you mean by generating Pascal code from xml files? Pascal code describes an…
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
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).
xmi files (not xml) are used to save uml models :…
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/
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.
Correction. It seems to have been implemented...
I must urgently upgrade my KDE :-)
Michael.
Well, Umbrello (Open source, comes with KDE) can generate code from XMI for various…
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/
Correction. It seems to have been implemented... I must urgently upgrade my KDE :-)…
Bummer. It writes old TP-Style object class definitions.
Michael.
Michael Van Canneyt wroteBummer. 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/
Correction. It seems to have been implemented... I must urgently upgrade my KDE :-)…
Michael Van Canneyt wroteCorrection. It seems to have been implemented... I must urgently upgrade my KDE :-)
Wow, the new KDE 4.x looks pretty cool, especially with the new Oxygen theme. Really wow!! I'm using Ubuntu 9.04 beta with Qt+KDE libs installed.
Regards,
- Graeme -
_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
On Fri, Apr 3, 2009 at 10:51 AM, Michael Van Canneyt I currently use "Dia Diagram editor"…
Graeme Geldenhuys wroteOn Fri, Apr 3, 2009 at 10:51 AM, Michael Van Canneyt 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 '.'
In /your/ locale, i'd guess his '.' would be a ','
In /my/ local... I'll have a pint, thanks.
I know - my smiley face has a double meaning.
Regards,
- Graeme -
_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
Well, Umbrello (Open source, comes with KDE) can generate code from XMI for various…
Zitat von Michael Van Canneyt :
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
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.
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
http://dia2code.sourceforge.net/ Marc Santhoff
Again no pascal :(
Michael.
On Fri, Apr 3, 2009 at 10:51 AM, Michael Van Canneyt I currently use "Dia Diagram editor"…
Graeme Geldenhuys wroteI currently use "Dia Diagram editor" to design UML diagrams, but as far as I know it does generate any code. :-(
http://dia2code.sourceforge.net/
No, I don't think so; But the 'pascal' implementation is very rudimentary, for instance…
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
On Fri, Apr 3, 2009 at 10:51 AM, Michael Van Canneyt I currently use "Dia Diagram editor"…
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.htmlmfg
Michael
Hi!
Osvaldo Filho wrote
The current version is available at
http://k7103.svn.sourceforge.net/viewvc/k7103/branch/ng/dia-codegen/
Bye
Hansi
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.
Hi!
leledumbo wroteErr... 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