Thanks Sébastien,
A User Manual is better than my mail tuto :)
(Remind me to check also the Topcased component's own pages for
documentation!)
Gianluca,
feel free to provide feed back on your tests.
Regards,
Fabien
Le jeudi 17 novembre 2011 17:37:45, Topcased user list where issues are
discussed a écrit :
Hi,
You can also have a look at the user guide available here :
http://gforge.enseeiht.fr/docman/?group_id=122
Regards,
Sebastien
Le 17/11/2011 16:59, Topcased user list where issues are discussed a
écrit :
Le 17/11/2011 10:20, Gianluca a écrit :
Is it possible, using Topcased, to have a model automatically built
starting from existing ANSI-C code?
Is there any tutorial or instruction about this functionality?
Thanks
Gianluca
Hi Gianluca,
there is no tutorial on the C2UML feature. The synchronisation was
the primary goal of the "Synchro C" plugins, but was not achieved
currently. There are only the "not synchronized" plugins, reverse to
model and code generation, wich are currently working.
In an few steps you could try to reverse your C code into a TOPCASED
model. Some C to UML mapping choices have been implemented and you
could experience some reverse problems depending of your C coding
policy. But major of the C ANSI is mapped to standards UML artefacts.
The steps to realise the reverse :
- get a C project into your workspace
- add the C2UML nature to the project (Left click on the project >
Configure > Add C2UML Nature)
- choose the reverse mode to "From C source" (you could also start
from a Topcased model to generate C code)
- then you get your C code into a fresh Topcased model created into
the project
- the operation has added the Topcased nature to your project.
C Code generation from the model :
- the path for generation is set for each class/interface into their
own properties GUI (Model | Metadata tab)
- src/[class_module].c
- inc/[interface_module].h
- point your mouse in the model outline, on the package from which
you want to generate code. By default the reversed elements are
located into [model] > Logical View > Source Artefacs. This could be
changed into the C to UML properties of the project, under Topcased
properties.
- you could generate for only a class/interface, a package or for the
full code by pointing at the chosen level.
- to reverse again your modified code into the UML model, you have to
remove and re-add the C2UML nature to the project.
- C2UML doesn't handle the deletion/remove of code
Hope this help.
--
Fabien Toral
CS Systèmes d'Information
+33 5 67 69 68 10
_______________________________________________
Topcased-users mailing list
[email protected]
http://lists.gforge.enseeiht.fr/cgi-bin/mailman/listinfo/topcased-users