diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2000-12-17 15:15:12 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2000-12-17 15:15:12 (GMT) |
commit | 00415514455991a9ff44b926c50adda994128924 (patch) | |
tree | 8face58cec7cf3e5e23acec30b6af55f5bed931c /src/classdef.cpp | |
parent | 5167cf2076e30ed3f6ddd84b76543a0dff207496 (diff) | |
download | Doxygen-00415514455991a9ff44b926c50adda994128924.zip Doxygen-00415514455991a9ff44b926c50adda994128924.tar.gz Doxygen-00415514455991a9ff44b926c50adda994128924.tar.bz2 |
Release-1.2.3-20001217
Diffstat (limited to 'src/classdef.cpp')
-rw-r--r-- | src/classdef.cpp | 42 |
1 files changed, 38 insertions, 4 deletions
diff --git a/src/classdef.cpp b/src/classdef.cpp index 775b84f..ac104eb 100644 --- a/src/classdef.cpp +++ b/src/classdef.cpp @@ -730,7 +730,22 @@ void ClassDef::writeDocumentation(OutputList &ol) } - if (!Config::genTagFile.isEmpty()) tagFile << ">" << name() << ":"; + if (!Config::genTagFile.isEmpty()) + { + tagFile << " <compound kind=\""; + switch(compType) + { + case Class: tagFile << "class"; break; + case Struct: tagFile << "struct"; break; + case Union: tagFile << "union"; break; + case Interface: tagFile << "interface"; break; + case Exception: tagFile << "exception"; break; + } + tagFile << "\">" << endl; + tagFile << " <name>" << convertToXML(name()) << "</name>" << endl; + tagFile << " <filename>" << convertToXML(fileName) << ".html</filename>" << endl; + } + if (Config::classDiagramFlag) ol.disableAllBut(OutputGenerator::Man); @@ -756,7 +771,23 @@ void ClassDef::writeDocumentation(OutputList &ol) ClassDef *cd=bcd->classDef; if (cd->isLinkable()) { - if (!Config::genTagFile.isEmpty()) tagFile << cd->name() << "?"; + if (!Config::genTagFile.isEmpty()) + { + tagFile << " <base"; + if (bcd->prot==Protected) + { + tagFile << " protection=\"protected\""; + } + else if (bcd->prot==Private) + { + tagFile << " protection=\"private\""; + } + if (bcd->virt==Virtual) + { + tagFile << " virtualness=\"virtual\""; + } + tagFile << ">" << convertToXML(cd->name()) << "</base>" << endl; + } ol.writeObjectLink(cd->getReference(),cd->getOutputFileBase(),0,cd->name()+bcd->templSpecifiers); } else @@ -774,8 +805,6 @@ void ClassDef::writeDocumentation(OutputList &ol) ol.newParagraph(); } - if (!Config::genTagFile.isEmpty()) tagFile << " \"" << fileName << ".html\"\n"; - // write subclasses if ((count=inheritedBy->count())>0) { @@ -1156,6 +1185,11 @@ void ClassDef::writeDocumentation(OutputList &ol) ol.popGeneratorState(); ol.endTextBlock(); + + if (!Config::genTagFile.isEmpty()) + { + tagFile << " </compound>" << endl; + } endFile(ol); } |