home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / cplus / 11351 < prev    next >
Encoding:
Text File  |  1992-07-22  |  987 b   |  50 lines

  1. Path: sparky!uunet!usc!sdd.hp.com!swrinde!elroy.jpl.nasa.gov!ncar!ico!auto-trol!bradav
  2. From: bradav@auto-trol.com (Brad Davidson)
  3. Newsgroups: comp.lang.c++
  4. Subject: Looking for a class expander tool
  5. Message-ID: <1992Jul22.203249.25850@auto-trol.com>
  6. Date: 22 Jul 92 20:32:49 GMT
  7. Sender: news@auto-trol.com
  8. Organization: Auto-trol Technology Corporation
  9. Lines: 37
  10. Originator: bradav@bradav
  11. Nntp-Posting-Host: bradav.auto-trol.com
  12.  
  13.  
  14. I am searching for a tool that will take a set of header files and for
  15. each class definition expand it to comment in or include all the
  16. inherited classes.
  17.  
  18. For example
  19.  
  20. Class A
  21. {
  22. protected:
  23.     int A_data;
  24. };
  25.  
  26. Class B
  27. {
  28. protected:
  29.     int B_data;
  30. };
  31.  
  32. Class C : public A : public B
  33. {
  34.     int C_data;
  35. }
  36.  
  37. Through the class expander I get the following for Class C
  38.  
  39. Class C
  40. {
  41.     int A::A_data;
  42.     int B::B_data;
  43.     int C_data;
  44. };
  45.  
  46. so that I can see all the inherited data and methods since in real life the
  47. classes are not quite this simple.
  48.  
  49. Brad Davidson
  50.