[email protected] a écrit :
I took a look to the Topcased UML to C generator, it seems that the default behavior for unknown primitive types is to generate "void*". I didn't see a simple way to add your custom type to the type translation table.

You should try the new generator made by Obeo : http://www.acceleo.org/wiki/index.php/UML_2.1_to_C
This generator is still in incubation phase but in the future, it should replace the Topcased UML2C generator.
Good news. Could you please tell us when the TOPCASED integration will be effective? (right click on model and then call "generate")
Thanks
raphaël
In this generator, the name of unknown primitive types is taken to produce the generated code, it is up to you to provide the type definition by including your own external libraries.
Feel free to provide any feedbacks on this new generator.

Regards,
Gonzague.

[email protected] a écrit :

Hello Gonzague,

 

I’ve tried that for C. I’ve already look on the template “header”, where is called something like “getCtype()”. More I did not yet checked.

 

Best regards,

 

Richard

RG Mechatronics

 

 

Von: [email protected] [mailto:[email protected]] Im Auftrag von [email protected]
Gesendet: Mittwoch, 29. April 2009 13:52
An: [email protected]
Betreff: Re: [Topcased-users] Question about new primitive type

 

Hello Richard,

Can you precise which code generator you are using here?

Best regards,
Gonzague Reydet
Obeo

[email protected] a écrit :

I want to add a new type int16 and I want to generate also this type with Acceleo. What I’ve found in docu: “Create a new primitive type…”.

But I can’t find how to specify a generated code. It always return “void*”. Exists some documentation about it, or some other hints?

 

Thank you

 

Richard

 


  
 
_______________________________________________
Topcased-users mailing list
[email protected]
http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users




-- 
Gonzague Reydet
Obeo
Model Driven Company

_______________________________________________ Topcased-users mailing list [email protected] http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users


-- 
Gonzague Reydet
Obeo
Model Driven Company

_______________________________________________ Topcased-users mailing list [email protected] http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users

--
Raphaël FAUDOU

Image Signature IOC Raphaël FAUDOU
Responsable cellule Innovation / bureau méthodes
Head of Innovation & Method Definition
Atos Origin

Tel     : +33 (0)5 34 36 32 89
Tel     : +33 (0)6 10 53 50 44
Mail   : [email protected]
Atos Origin
6, Impasse Alice Guy
BP 43045
31024 Toulouse Cedex 3, France

P Avant d'imprimer cet e-mail, pensez à l'environnement. Ce message et les pièces jointes sont confidentiels et réservés à l'usage exclusif de ses destinataires. Il peut également être protégé par le secret professionnel. Si vous recevez ce message par erreur, merci d'en avertir immédiatement l'expéditeur et de le détruire. L'intégrité du message ne pouvant être assurée sur Internet, la responsabilité du groupe Atos Origin ne pourra être recherchée quant au contenu de ce message. Bien que les meilleurs efforts soient faits pour maintenir cette transmission exempte de tout virus, l'expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne saurait être recherchée pour tout dommage résultant d'un virus transmis.
P Please consider your environmental responsibility before printing this e-mail. This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted.

_______________________________________________
Topcased-users mailing list
[email protected]
http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users

Reply via email to