Class inheritance diagrams using PSTricks?



I'm trying to generate inheritance diagrams with PSTricks. I use a
'find > grep' command:

find -iname "*.cs" -exec grep -H "class .*:" \{} ";" > myclasses.txt

to get all the class declarations from the .cs source files. (A
similar command should work for C++ also.) This gets me a text file
with lines of the form:

../blah/blah/blah.cs: public void class MyExampleClass: BaseClassOne,
BaseClassTwo

I initially tried using GraphViz to draw the diagrams, but it doesn't
seem to handle the case of multiple disjoint graphs very well. I get
a large image in which many of the graphs overlap, and even nodes
within a graph overlap. Unreadable.

So I thought of modifying my Perl script to generate a LaTeX document
with \pstree and \psframe elements instead. This should be
straightforward enough for trees, but for multiple inheritance
scenarios, I'd have to figure out how to position the nodes, etc.

Anyone know how to solve this? Anyone have a better way to do this
altogether?

Thanks!

-pd
.



Relevant Pages

  • Re: SFC problem
    ... Emails will not be acknowledged - please post to the newsgroup so all may benefit. ... I used the revert command ... |> installation source files. ... |> This command may require access to the Windows installation source files ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: FTP-type film transfer program?
    ... The only time that ROBOCOPY will delete the source files is if you specifically use the MIRROR command - otherwise the originals are always left intact. ... It requires setting switches ...
    (microsoft.public.win2000.networking)
  • remove a patch
    ... I've installed a patch and I'd like to uninstall it now. ... package with no source files, ... need to change the command line? ...
    (microsoft.public.sms.admin)
  • Re: what should xargs do with empty stdin?
    ... |>> a particular root directory. ... It's _rm_ reporting this complaint, not xargs. ... |> command that xargs is going to run to accept no arguments. ... in a directory with no C source files, ...
    (comp.unix.questions)
  • Re: make
    ... > build/compile process (I use gcc compiler) ... > Actually we use a 'make' command to build the source files and the ...
    (comp.lang.c)