user2362874
user2362874

Reputation: 131

searching for the whole list of derived classes of a base class in a big C++ project

I am working on a huge C++ project. I am using Netbeans to edit it, as the compilation takes place on a linux server. I have a problem of getting the whole list of derived classes that inherit from a base class. There is a protected variable in the base class and I want to takle it in the derived classes that inherit it, but how do I know who is inheriting it?

I have already launched a search on the root of the project directory for " : public BASE_CLASS " but I haven't found anything!

Is this way correct to get the derived classes?

I have searched for this issue in the forum but I haven't find anything relevant.

Any help or hint is highly appreciated.

Upvotes: 1

Views: 181

Answers (1)

Ian Medeiros
Ian Medeiros

Reputation: 1776

Use doxygen with graphviz support to generate a hierachy graph diagram for you.

The procedure is simple:

  1. Install graphviz.
  2. Install doxygen.
  3. Use the Doxywizard to configure the desired outputs to you.

Here is a screenshot of the doxygen diagrams tab so you have a clue on how's the interface.

Doxygen diagrams tab

And finally, here is a link with an output example to you.

Upvotes: 2

Related Questions