5

So how exactly does one separate classes by path in Doxygen? I have tried with groups and sections,but for some reason, it would always combine classes with same name.

Current file structure is as following:

Trunk
 |
 +-> Client -> DemoClass.h
 |
 +-> Server -> DemoClass.h
 |
 +-> Shared -> OtherClass.h

Problem is I don't want a 1x DemoClass in doxygen that contains all the functions combined i want 2 seperate sections/class as in Server/DemoClass, Client/DemoClass.

6
  • I'd rename them to clientDemo.h and serverDemo.h. Commented Apr 1, 2013 at 17:06
  • 1
    Can't rename them, we are talking doxygen to help documenting not screwing up 10000 lines of code. Commented Apr 1, 2013 at 17:09
  • 1
    If your demos are really 10000 lines of code, you need some serious rewriting anyway. Commented Apr 1, 2013 at 17:16
  • Groups, so long as you use them correctly and make sure the two are added to different groups, which are then closed, should solve this. Commented Apr 1, 2013 at 17:28
  • 1
    Really, I need rewriting cause they are different projects? Maybe learn to program before you speak? I am asking for a solution without code changes, cause I refuse to believe anyone would write a software that is incapable of handling multiple projects. Commented Apr 1, 2013 at 19:09

1 Answer 1

3

This is a known limitation, see bullet 4 of http://www.doxygen.org/manual/trouble.html.

I recommend to make separate projects, one for the server and one for the client, as they can never be legally in one executable anyway, or use namespaces.

File names can be the same, that's not a problem.

Sign up to request clarification or add additional context in comments.

1 Comment

Yeah, well the point of it was to draw UML diagrams that connected them, and cut off some time in doing that, cheers for the answer. The documentation confused me, since it writes "it should ignore all of the classes with the same name except one.", but it combined them, so I was hoping we where talking about some kinda option/flag for disabling the combination.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.