Hallo Gonzague,
I've tried to make a test with a class containing one attribute a:int32 and one operation Init(). In the log file I see: -> Errors in file : DefaultName/Class1.h Position 57 : EVAL : Empty feature evaluation, in file : /org.acceleo.module.pim.uml21.gen.c/org/acceleo/module/pim/uml21/gen/c/lib/common.mt, at line : 43, at column : 29, for object : fragment=_WlRsUDrZEd6ay9smG1WNZw file=/resource/delete_uml_test/Models/DefaultName.uml -> Errors in file : DefaultName/Class1.c Position 57 : EVAL : Empty feature evaluation, in file : /org.acceleo.module.pim.uml21.gen.c/org/acceleo/module/pim/uml21/gen/c/lib/common.mt, at line : 43, at column : 29, for object : fragment=_WlRsUDrZEd6ay9smG1WNZw file=/resource/delete_uml_test/Models/DefaultName.uml Best regards, Richard Von: [email protected] [mailto:[email protected]] Im Auftrag von [email protected] Gesendet: Montag, 4. Mai 2009 10:23 An: [email protected] Betreff: Re: [Topcased-users] Question about new primitive type 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. 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
