Actually doxygen can output an XML file which you can then very simply analyze in your software.
Main Topics
Browse All TopicsHello Experts,
i am working on small application. i need to collect some information about a class.
Like, i need to count how many methods a class is having, how many attributes each methods is having and what are their data types.
i will give a .Cpp file as an input to my program. and my progam will analyse .Cpp file for above mentioned things.
.Cpp file that i input, may have many classes in it and each class may have many methods in it.
My question is which is the best method to perform this.
how do i search where each class begins, which are various methods of a class (since a method may be given inside or outside a class) etc.
Please provide some guidelines.
Thanks.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Parsing C++ is my no means an easy feat. It is a very complex language to parse due to a lot of it being context specific. I certainly advocate the Doxygen suggestion already made by my colleagues jkr and Let_Me_Be; however, if you are interested in parsing C++ I found this site where someone has done a little research on the topic. I thought you might find useful (or at least interesting).
http://www.nobugs.org/deve
Business Accounts
Answer for Membership
by: jkrPosted on 2009-10-22 at 08:03:03ID: 25635046
Don't reinvent the wheel, take a look at Doxygen (www.doxygen.org) - the source code for it is also available.