summaryrefslogtreecommitdiffstats
path: root/src/xmlgen.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2003-02-23 20:49:55 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2003-02-23 20:49:55 (GMT)
commit448b28836eb910f95e2f1903b4dea5eb8548e424 (patch)
tree4163d92b8a5b2126fe8413cc21df8eb3f247dbfa /src/xmlgen.cpp
parent067ee3cfc7a79acd42cedb3f89713b9ed5f47f93 (diff)
downloadDoxygen-448b28836eb910f95e2f1903b4dea5eb8548e424.zip
Doxygen-448b28836eb910f95e2f1903b4dea5eb8548e424.tar.gz
Doxygen-448b28836eb910f95e2f1903b4dea5eb8548e424.tar.bz2
Doxygen-1.3-rc3-20030223
Diffstat (limited to 'src/xmlgen.cpp')
-rw-r--r--src/xmlgen.cpp42
1 files changed, 32 insertions, 10 deletions
diff --git a/src/xmlgen.cpp b/src/xmlgen.cpp
index 9c90234..25ca501 100644
--- a/src/xmlgen.cpp
+++ b/src/xmlgen.cpp
@@ -450,6 +450,9 @@ static void generateXMLForMember(MemberDef *md,QTextStream &ti,QTextStream &t,De
// enum values are written as part of the enum
if (md->memberType()==MemberDef::EnumValue) return;
+ // group members are only visible in their group
+ //if (def->definitionType()!=Definition::TypeGroup && md->getGroupDef()) return;
+
QCString memType;
bool isFunc=FALSE;
switch (md->memberType())
@@ -482,18 +485,16 @@ static void generateXMLForMember(MemberDef *md,QTextStream &ti,QTextStream &t,De
t << " <memberdef kind=\"";
//enum { define_t,variable_t,typedef_t,enum_t,function_t } xmlType = function_t;
t << memType << "\" id=\"";
- t << md->getOutputFileBase()
- << "_1" // encoded `:' character (see util.cpp:convertNameToFile)
- << md->anchor();
- t << "\"";
- t << " virt=\"";
- switch (md->virtualness())
+ if (md->getGroupDef() && def->definitionType()==Definition::TypeGroup)
{
- case Normal: t << "normal"; break;
- case Virtual: t << "virtual"; break;
- case Pure: t << "pure-virtual"; break;
- default: ASSERT(0);
+ t << md->getGroupDef()->getOutputFileBase();
}
+ else
+ {
+ t << md->getOutputFileBase();
+ }
+ t << "_1" // encoded `:' character (see util.cpp:convertNameToFile)
+ << md->anchor();
t << "\" prot=\"";
switch(md->protection())
{
@@ -503,6 +504,7 @@ static void generateXMLForMember(MemberDef *md,QTextStream &ti,QTextStream &t,De
}
t << "\" static=\"";
if (md->isStatic()) t << "yes"; else t << "no";
+
t << "\"";
if (isFunc)
@@ -510,6 +512,22 @@ static void generateXMLForMember(MemberDef *md,QTextStream &ti,QTextStream &t,De
ArgumentList *al = md->argumentList();
t << " const=\"";
if (al && al->constSpecifier) t << "yes"; else t << "no";
+
+ t << "\" explicit=\"";
+ if (md->isExplicit()) t << "yes"; else t << "no";
+
+ t << "\" inline=\"";
+ if (md->isInline()) t << "yes"; else t << "no";
+
+ t << "\" virt=\"";
+ switch (md->virtualness())
+ {
+ case Normal: t << "normal"; break;
+ case Virtual: t << "virtual"; break;
+ case Pure: t << "pure-virtual"; break;
+ default: ASSERT(0);
+ }
+
t << "\"";
}
@@ -518,6 +536,10 @@ static void generateXMLForMember(MemberDef *md,QTextStream &ti,QTextStream &t,De
ArgumentList *al = md->argumentList();
t << " volatile=\"";
if (al && al->volatileSpecifier) t << "yes"; else t << "no";
+
+ t << "\" mutable=\"";
+ if (md->isMutable()) t << "yes"; else t << "no";
+
t << "\"";
}