Click here to Skip to main content
Rate this: bad
good
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
SKS
Posted 4-Aug-10 13:12pm
Comments
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
good
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 | ;)
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 195
1 ProgramFOX 130
2 Maciej Los 105
3 Afzaal Ahmad Zeeshan 82
4 Sergey Alexandrovich Kryukov 75
0 OriginalGriff 6,564
1 Sergey Alexandrovich Kryukov 6,048
2 DamithSL 5,228
3 Manas Bhardwaj 4,717
4 Maciej Los 4,150


Advertise | Privacy | Mobile
Web02 | 2.8.1411022.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