Click here to Skip to main content
15,891,905 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I want to read a .h and .cpp file and get the function names and their signatures
and write them in XML format.Can you please tell me wheter its possible or not and how?All coding has to be done in C++.



Thank You.
Posted
Updated 23-Oct-11 9:26am
v2

Most things like that are done with a parser, or, heck, even by pre-processing the code with a preprocessor/compiler.; and can be quite complex.

have a look at doxygen, gcc-xml, cproto, ....

Good luck.
 
Share this answer
 
Comments
Espen Harlinn 23-Oct-11 17:34pm    
doxygen even writes out the xml, my 5
Of course it is possible, since these files are text and can be read and interpreted quite easily. The difficulty will be in recognising functions and ignoring everything else. There may well be some open source utilities that can help you with this; try a Google search to see what you can find.
 
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