summaryrefslogtreecommitdiffstats
path: root/src/classdef.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2000-12-17 15:15:12 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2000-12-17 15:15:12 (GMT)
commit6505abff80c988faf734b2e4c31cd2a94c2c10b5 (patch)
tree8face58cec7cf3e5e23acec30b6af55f5bed931c /src/classdef.cpp
parentfe67b8eb68129713327965c201f2d7226b83202f (diff)
downloadDoxygen-6505abff80c988faf734b2e4c31cd2a94c2c10b5.zip
Doxygen-6505abff80c988faf734b2e4c31cd2a94c2c10b5.tar.gz
Doxygen-6505abff80c988faf734b2e4c31cd2a94c2c10b5.tar.bz2
Release-1.2.3-20001217
Diffstat (limited to 'src/classdef.cpp')
-rw-r--r--src/classdef.cpp42
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);
}