Re: [Doxygen-users] Force inheritance
Brought to you by:
dimitri
From: Ed T. <ed....@ve...> - 2007-05-22 07:03:33
|
In your doxygen configuration file, add something like = "DOXYGEN_INHERITSANIMAL=3DAnimal," to the predefined list.=20 Then in your code, add "#define DOXYGEN_INHERITSANIMAL" and immediately = after the class declaration add "DOXYGEN_INHERITSANIMAL" - the compiler = will ignore it, as it is defined as doing nothing. But the doxygen = parser will read it as meaning the class inherits Animal. i.e. Class Dog : DOXYGEN_INHERITSANIMAL GeneratedDog { ... } HTH, Ed Trollope Senior Engineer VEGA IT GmbH Europaplatz 5 D-64293 Darmstadt Germany Tel : +49 (0)6151 8257-731 Fax : +49 (0)6151 8257-799 Email : ed....@ve... Web : www.vega-group.com Register court/Registergericht: Darmstadt, HRB No. 4096, Managing = Directors/Gesch=E4ftsf=FChrer: Philip Cartmell, Susan Bygrave, John = Lewis, Robert Rouse Notice of Confidentiality This transmission is intended for the named addressee only. It contains = information which may be confidential and which may also be privileged. = Unless you are the named addressee (or authorised to receive it for the = addressee) you may not copy or use it, or disclose it to anyone else. = If you have received this transmission in error please notify the sender = immediately. -----Original Message----- From: dox...@li... = [mailto:dox...@li...] On Behalf Of Morten = Winkler J=F8rgensen Sent: 22 May 2007 10:50 To: dox...@li... Subject: [Doxygen-users] Force inheritance Hi All. I have a project (PHP) where I have an abstract class/interface named,=20 say, "Animal". Animal is implemented several classes, say, Dog, Cat and Mouse. However, all animals implements a lot of similar code I generate so the=20 actually inheritance scheme is: Animal | GeneratedDog | Dog GeneratedDog implements some of the abstract methods from Animal while = Dog=20 implements the rest. Now, in my documentation it is irelevant that GeneratedDog exists, so = I've=20 told Doxygen to ignore Generated* classes. Unfortumnately this removes = the=20 inheritance relation between dog and Animal.=20 So: Is there a way, a tag or a keyword, I can use in the documentation = of Dog=20 to force Doxygen to make an inheritance scheme like: Animal | Dog Any other tips and hints to reach my solution are welcome. Thanks and regards, Morten -------------------------------------------------------------------------= This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Doxygen-users mailing list Dox...@li... https://lists.sourceforge.net/lists/listinfo/doxygen-users ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email=20 ______________________________________________________________________ |