summaryrefslogtreecommitdiffstats
path: root/src/xmlgen.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2012-06-10 09:28:22 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2012-06-10 09:28:22 (GMT)
commit0ce3aea886f4e95da56d164b3944fd54d3d68f89 (patch)
tree6709ddc7b1764dc3b20bbac7eb36c05edcc91e03 /src/xmlgen.cpp
parent1983c30b71bf92b3fa6bfedbb98451c3b7f74498 (diff)
downloadDoxygen-0ce3aea886f4e95da56d164b3944fd54d3d68f89.zip
Doxygen-0ce3aea886f4e95da56d164b3944fd54d3d68f89.tar.gz
Doxygen-0ce3aea886f4e95da56d164b3944fd54d3d68f89.tar.bz2
Release-1.8.1.1
Diffstat (limited to 'src/xmlgen.cpp')
-rw-r--r--src/xmlgen.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/xmlgen.cpp b/src/xmlgen.cpp
index b75a2f0..9475470 100644
--- a/src/xmlgen.cpp
+++ b/src/xmlgen.cpp
@@ -60,6 +60,7 @@ static const char compound_xsd[] =
//------------------
+/** Helper class mapping MemberList::ListType to a string representing */
class XmlSectionMapper : public QIntDict<char>
{
public:
@@ -193,6 +194,7 @@ void writeXMLLink(FTextStream &t,const char *extRef,const char *compoundId,
t << "</ref>";
}
+/** Implements TextGeneratorIntf for an XML stream. */
class TextGeneratorXMLImpl : public TextGeneratorIntf
{
public:
@@ -212,6 +214,7 @@ class TextGeneratorXMLImpl : public TextGeneratorIntf
FTextStream &m_t;
};
+/** Helper class representing a stack of objects stored by value */
template<class T> class ValStack
{
public:
@@ -265,7 +268,7 @@ template<class T> class ValStack
int m_size;
};
-
+/** Generator for producing XML formatted source code. */
class XMLCodeGenerator : public CodeOutputInterface
{
public:
@@ -733,12 +736,14 @@ static void generateXMLForMember(MemberDef *md,FTextStream &ti,FTextStream &t,De
if (md->isSettable()) t << "yes"; else t << "no";
t << "\"";
- if (md->isAssign() || md->isCopy() || md->isRetain())
+ if (md->isAssign() || md->isCopy() || md->isRetain() || md->isStrong() || md->isWeak())
{
t << " accessor=\"";
- if (md->isAssign()) t << "assign";
- else if (md->isCopy()) t << "copy";
+ if (md->isAssign()) t << "assign";
+ else if (md->isCopy()) t << "copy";
else if (md->isRetain()) t << "retain";
+ else if (md->isStrong()) t << "strong";
+ else if (md->isWeak()) t << "weak";
t << "\"";
}
}