Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   C (http://www.programmingforums.org/forum60.html)
-   -   C Data Structure Extraction/viewing Tool (http://www.programmingforums.org/showthread.php?t=698)

norrismcwhirter Sep 30th, 2004 3:56 AM

Hi,

Problem scenario:

I'm trying to implement an automated tool which is capable of physically communicating with several legacy products for the purpose of automatic code testing.

One of the key issues is that the tool needs to read/write data structures within the products but the data structures may not be documented.

So, it struck me it might be a good idea to construct a view of the data structures from the source code itself (in C), as we know this to be the most up to date and correct description of those, items into a database (or similar) which the tool may interface to. Thus, automated test scripts may be based upon information in the database....

To do this, the tool would need to view the entire project, cross reference data types then dump out the data structures in human readable format (or straight into a database).

It also struck me that I can't be the first person to want to do this so does anyone know of a tool for doing this? It doesn't matter if it doesn't do exactly what I'm asking of it; I don't mind modifying something.

Cheers,
Norris

Ashcroft Sep 30th, 2004 10:10 AM

I personally love source navigator - http://sourcenav.sourceforge.net/

I've used it on Linux, Mac OS X, and Solaris 2.6-2.8 so it should be portable to most any Unix type system.

Since you have source you may also want to consider a simple unit test program.

A variety of C and C++ unit testing tools is at - http://www.opensourcetesting.org/unit_c.php

Most of these will analyze our project and build tests for all public methods of your classes


All times are GMT -5. The time now is 8:46 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC