0

I am working to create a framework in "C" language where all data structures (both standard and custom one) used in a program are auto generated from a "IDL" or "XML" file rather than hardcoded by the user.

I want to autogenerate dump functions for these data structures rather than add printf functions for each every variable whenever it is added. This is similar to CORBA functionality and I am no expert in it.

Is there any library or simplified implementation available for reference ?

codingfreak
  • 4,467
  • 11
  • 48
  • 60
  • This might be relevant: http://stackoverflow.com/questions/371371/serialize-data-structures-in-c –  Jan 31 '17 at 20:03
  • Thanks for the comment @MartinBroadhurst. But the link which you have shared talks about serialization/deserlization problem right ? In my case I want to autogenerate the C structures which I use in my program so that I can also autogenerate code to dump the respective C data structures whenever I need to rather than manually write a printf for the same. – codingfreak Jan 31 '17 at 20:11
  • Maybe something like gSOAP? https://www.cs.fsu.edu/~engelen/soap.html –  Jan 31 '17 at 21:14
  • Eventhough I am not looking for SOAP option I will look into gSOAP. Thanks @MartinBroadhurst – codingfreak Feb 02 '17 at 23:08

0 Answers0