Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: C++ Python
Hi Friends,
I want to parse a header file and auto generate a .cpp file. Can any one please suggest me good link in doing so or provide me a sample python script which will automatically generate a .cpp file.
I planning to using VC++ pre-build event to call this python script.
Thank you very much in advance
Posted 4-Aug-10 13:12pm
GPUToaster at 6-Aug-10 7:34am
You mean to say that just by scanning the .H files, Python script will generate CPP files????? Kindly elaborate your query.
kishoresajja at 11-Aug-10 18:00pm
Yeah, I have one header file and I want to auto generate .cpp and .h file with the information contained in the header file using some mechanism. So I thought it would be good I can do this using python script which can read the header file and create a all new .cpp and .h files.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

What do you precisely mean?
It seems that you want to read an header file and automatically generate a cpp file that implements that functions and classes... the day that a similar script will born, all the software developers will have to search for a different work! Wink | ;)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 375
1 Sergey Alexandrovich Kryukov 329
2 CPallini 260
3 DamithSL 214
4 Maciej Los 197
0 OriginalGriff 5,455
1 DamithSL 4,457
2 Maciej Los 3,885
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,115

Advertise | Privacy | Mobile
Web04 | 2.8.141216.1 | Last Updated 6 Aug 2010
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100