Click here to Skip to main content
15,886,769 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
SKS
Posted
Comments
GPUToaster™ 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 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

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! ;)
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900