[Doxygen-develop] Patch: Giving nested classes, structs unions an access attribute.
Brought to you by:
dimitri
From: <Pau...@Sy...> - 2003-09-23 16:20:38
|
NOTE: This was previously reported on bugzilla as bug 120464. Given this pseudo code: class AB { public: class ABE{}; protected: class ABD{}; private: class ABC {}; }; Doxygen XML does not assign a prot="..." attribute for the member classes (it also does not emit the access attribute in HTML as well). The patch for XML for version 1.3.4 is in xmlgen.cpp, function generateXMLForClass(). The diff for xmlgen.cpp, version 1.3.4 is: $ diff -u original/xmlgen.cpp patched/xmlgen.cpp --- original/xmlgen.cpp 2003-09-20 14:09:24.000000000 +0100 +++ patched/xmlgen.cpp 2003-09-23 16:51:56.000000000 +0100 @@ -876,7 +876,17 @@ writeXMLHeader(t); t << " <compounddef id=\"" << cd->getOutputFileBase() << "\" kind=\"" - << cd->compoundTypeString() << "\">" << endl; + << cd->compoundTypeString() << "\""; + Protection prot = cd->protection(); + t << " prot=\""; + switch (prot) + { + case Public: t << "public"; break; + case Protected: t << "protected"; break; + case Private: t << "private"; break; + case Package: t << "package"; break; + } + t << "\">" << endl; t << " <compoundname>"; writeXMLString(t,cd->name()); t << "</compoundname>" << endl; Paul Ross ********************************************************************** Symbian Ltd is a company registered in England and Wales with registered number 01796587 and registered office at 19 Harcourt Street, London, W1H 4HF, UK. This message is intended only for use by the named addressee and may contain privileged and/or confidential information. If you are not the named addressee you should not disseminate, copy or take any action in reliance on it. If you have received this message in error please notify pos...@sy... and delete the message and any attachments accompanying it immediately. Symbian does not accept liability for any corruption, interception, amendment, tampering or viruses occurring to this message in transit or for any message sent by its employees which is not in compliance with Symbian corporate policy. ********************************************************************** |