Book a Demo

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - A_Gallo

Pages: [1]
1
Suggestions and Requests / Re: C code generator
« on: July 11, 2005, 01:35:52 am »
Thanks, it is really interesting and I can volunteer in alpha-testing it, if it helps  you  ;)

Best regards

Andrea

2
Suggestions and Requests / Re: C code generator
« on: May 17, 2005, 03:22:19 am »
Thank you, I did search for "C code generator" before posting in the forum but I could not find it :(

Regards

3
Suggestions and Requests / Re: C code generator
« on: May 15, 2005, 09:17:32 pm »
Hi again,

concerning inheritance, I would propose that in its typedef struct the derived C class has the inherited original typedef struct as first element and then adds all newly added attributes.

This would also allow "cast" and use of API from the parent class to work also on the child class structure.

The big issue is on how to manage for methods to be inherited...

Maybe the solution is to work with enum's and look-up table for function call through pointers. In this way, the derived class could add its newly added methods by extending the table after the original methods from the parent class.

If Sparx Systems have room for this C code generator, I am available for beta testing and for providing some hints or C code from my suggestions above.

thanks and regards

4
Suggestions and Requests / C code generator
« on: May 15, 2005, 12:40:06 am »
Until now we have been working in C++ and we are now on a C project based on Linux. As we are integrating our code inside an existing environment, it would be usefull to have a C code engineering process and support.

Classes can be mapped onto individual header files (as already done) with public and private attributes being grouped into typedef struct and methods into API.

Constructor and Destructors shall be mapped onto malloc and free of the struct.

Each API call shall have the pointer to the typedef struct, to support multiple instantiated objects.

It would be nice to have this feature available in EA.

thanks

Pages: [1]