浏览该文件的文档.
52 #define XML_DB(x) do {} while(0)
118 const char *s = str.
data();
127 int spacesToNextTabStop = tabSize - (col%tabSize);
128 col+=spacesToNextTabStop;
129 while (spacesToNextTabStop--) t <<
"<sp/>";
132 case ' ': t <<
"<sp/>"; col++;
break;
133 case '<': t <<
"<"; col++;
break;
134 case '>': t <<
">"; col++;
break;
135 case '&': t <<
"&"; col++;
break;
136 case '\'': t <<
"'"; col++;
break;
137 case '"': t <<
"""; col++;
break;
138 case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
case 7:
case 8:
139 case 11:
case 12:
case 13:
case 14:
case 15:
case 16:
case 17:
case 18:
140 case 19:
case 20:
case 21:
case 22:
case 23:
case 24:
case 25:
case 26:
141 case 27:
case 28:
case 29:
case 30:
case 31:
143 t <<
"<sp value=\"" << int(c) <<
"\"/>";
153 t <<
"<?xml version='1.0' encoding='UTF-8' standalone='no'?>\n";;
154 t <<
"<doxygen xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" ";
155 t <<
"xsi:noNamespaceSchemaLocation=\"compound.xsd\" ";
156 t <<
"version=\"" << getDoxygenVersion() <<
"\" ";
164 QCString fileName=outputDirectory+
"/combine.xslt";
165 std::ofstream t(fileName.
str(),std::ofstream::out | std::ofstream::binary);
168 err(
"Cannot open file %s for writing!\n",
qPrint(fileName));
173 "<!-- XSLT script to combine the generated output into a single file. \n"
174 " If you have xsltproc you could use:\n"
175 " xsltproc combine.xslt index.xml >all.xml\n"
177 "<xsl:stylesheet xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\" version=\"1.0\">\n"
178 " <xsl:output method=\"xml\" version=\"1.0\" indent=\"no\" standalone=\"yes\" />\n"
179 " <xsl:template match=\"/\">\n"
180 " <doxygen version=\"{doxygenindex/@version}\" xml:lang=\"{doxygenindex/@xml:lang}\">\n"
181 " <!-- Load all doxygen generated xml files -->\n"
182 " <xsl:for-each select=\"doxygenindex/compound\">\n"
183 " <xsl:copy-of select=\"document( concat( @refid, '.xml' ) )/doxygen/*\" />\n"
187 "</xsl:stylesheet>\n";
194 t <<
"<ref refid=\"" << compoundId;
195 if (!anchorId.
isEmpty()) t <<
"_1" << anchorId;
196 t <<
"\" kindref=\"";
197 if (!anchorId.isEmpty()) t <<
"member";
else t <<
"compound";
199 if (!extRef.
isEmpty()) t <<
" external=\"" << extRef <<
"\"";
229 m_insideCodeLine(
FALSE), m_normalHLNeedStartTag(
TRUE), m_insideSpecialHL(
FALSE)
236 XML_DB((
"(codify \"%s\")\n",text));
239 m_t <<
"<highlight class=\"normal\">";
249 XML_DB((
"(writeCodeLink)\n"));
252 m_t <<
"<highlight class=\"normal\">";
262 XML_DB((
"(writeToolTip)\n"));
266 XML_DB((
"(startCodeLine)\n"));
276 m_t <<
" refkind=\"member\"";
280 m_t <<
" refkind=\"compound\"";
294 XML_DB((
"(endCodeLine)\n"));
297 m_t <<
"</highlight>";
300 m_t <<
"</codeline>\n";
308 XML_DB((
"(startFontClass)\n"));
311 m_t <<
"</highlight>";
314 m_t <<
"<highlight class=\"" << colorClass <<
"\">";
319 XML_DB((
"(endFontClass)\n"));
320 m_t <<
"</highlight>";
325 XML_DB((
"(writeCodeAnchor)\n"));
328 const QCString &anchorId,
int l,
bool)
330 XML_DB((
"(writeLineNumber)\n"));
349 m_t <<
" <programlisting>\n";
354 m_t <<
" </programlisting>\n";
366 indentStr.
fill(
' ',indent);
369 t << indentStr <<
"<templateparamlist>\n";
372 t << indentStr <<
" <param>\n";
373 if (!a.type.isEmpty())
375 t << indentStr <<
" <type>";
379 if (!a.name.isEmpty())
381 t << indentStr <<
" <declname>" <<
convertToXML(a.name) <<
"</declname>\n";
382 t << indentStr <<
" <defname>" <<
convertToXML(a.name) <<
"</defname>\n";
384 if (!a.defval.isEmpty())
386 t << indentStr <<
" <defval>";
390 if (!a.typeConstraint.isEmpty())
392 t << indentStr <<
" <typeconstraint>";
394 t <<
"</typeconstraint>\n";
396 t << indentStr <<
" </param>\n";
398 t << indentStr <<
"</templateparamlist>\n";
432 auto xmlCodeGen = std::make_unique<XMLCodeGenerator>(t);
436 root->accept(visitor.get());
444 intf->resetCodeParserState();
447 intf->parseCode(*xmlGen,
473 t <<
" <" << tagName <<
" refid=\"";
484 t <<
">" <<
convertToXML(name) <<
"</" << tagName <<
">\n";
496 else if (typeStr==
"virtual") typeStr=
"";
568 <<
"_1" << md->
anchor() <<
"\" kind=\"" << memType <<
"\"><name>"
577 t <<
" <memberdef kind=\"";
579 t << memType <<
"\" id=\"";
593 case Public: t <<
"public";
break;
595 case Private: t <<
"private";
break;
596 case Package: t <<
"package";
break;
601 if (md->
isStatic()) t <<
"yes";
else t <<
"no";
606 t <<
" constexpr=\"yes\"";
617 if (md->
isExplicit()) t <<
"yes";
else t <<
"no";
621 if (md->
isInline()) t <<
"yes";
else t <<
"no";
633 t <<
" final=\"yes\"";
638 t <<
" sealed=\"yes\"";
648 t <<
" optional=\"yes\"";
653 t <<
" required=\"yes\"";
658 t <<
" noexcept=\"yes\"";
663 t <<
" volatile=\"yes\"";
669 case Normal: t <<
"non-virtual";
break;
670 case Virtual: t <<
"virtual";
break;
671 case Pure: t <<
"pure-virtual";
break;
680 if (md->
isStrong()) t <<
"yes";
else t <<
"no";
691 if (md->
isMutable()) t <<
"yes";
else t <<
"no";
696 t <<
" initonly=\"yes\"";
700 t <<
" attribute=\"yes\"";
704 t <<
" property=\"yes\"";
708 t <<
" readonly=\"yes\"";
712 t <<
" bound=\"yes\"";
716 t <<
" removable=\"yes\"";
720 t <<
" constrained=\"yes\"";
724 t <<
" transient=\"yes\"";
728 t <<
" maybevoid=\"yes\"";
732 t <<
" maybedefault=\"yes\"";
736 t <<
" maybeambiguous=\"yes\"";
742 if (md->
isReadable()) t <<
"yes";
else t <<
"no";
746 if (md->
isWritable()) t <<
"yes";
else t <<
"no";
750 if (md->
isGettable()) t <<
"yes";
else t <<
"no";
753 t <<
" privategettable=\"";
757 t <<
" protectedgettable=\"";
762 if (md->
isSettable()) t <<
"yes";
else t <<
"no";
765 t <<
" privatesettable=\"";
769 t <<
" protectedsettable=\"";
777 else if (md->
isCopy()) t <<
"copy";
778 else if (md->
isRetain()) t <<
"retain";
779 else if (md->
isStrong()) t <<
"strong";
780 else if (md->
isWeak()) t <<
"weak";
787 if (md->
isAddable()) t <<
"yes";
else t <<
"no";
795 if (md->
isRaisable()) t <<
"yes";
else t <<
"no";
835 if (bitfield.
at(0)==
':') bitfield=bitfield.
mid(1);
836 t <<
" <bitfield>" <<
convertToXML(bitfield) <<
"</bitfield>\n";
842 t <<
" <reimplements refid=\""
848 t <<
" <reimplementedby refid=\""
850 <<
convertToXML(rbmd->name()) <<
"</reimplementedby>\n";
867 auto defIt = defAl.
begin();
872 if (defIt!=defAl.
end())
878 if (!a.attrib.isEmpty())
880 t <<
" <attributes>";
882 t <<
"</attributes>\n";
884 if (!a.type.isEmpty())
890 if (!a.name.isEmpty())
894 t <<
"</declname>\n";
902 if (!a.array.isEmpty())
908 if (!a.defval.isEmpty())
916 t <<
" <briefdescription>";
919 t <<
"</briefdescription>\n";
931 t <<
" <param></param>\n";
937 t <<
" <param><defname>" << a.type <<
"</defname></param>\n";
943 t <<
" <requiresclause>";
945 t <<
" </requiresclause>\n";
950 t <<
" <initializer>";
952 t <<
"</initializer>\n";
957 t <<
" <exceptions>";
959 t <<
"</exceptions>\n";
967 <<
"_1" << emd->anchor() <<
"\" kind=\"enumvalue\"><name>"
971 << emd->anchor() <<
"\" prot=\"";
972 switch (emd->protection())
974 case Public: t <<
"public";
break;
976 case Private: t <<
"private";
break;
977 case Package: t <<
"package";
break;
983 if (!emd->initializer().isEmpty())
985 t <<
" <initializer>";
987 t <<
"</initializer>\n";
989 t <<
" <briefdescription>\n";
990 writeXMLDocBlock(t,emd->briefFile(),emd->briefLine(),emd->getOuterScope(),emd,emd->briefDescription());
991 t <<
" </briefdescription>\n";
992 t <<
" <detaileddescription>\n";
993 writeXMLDocBlock(t,emd->docFile(),emd->docLine(),emd->getOuterScope(),emd,emd->documentation());
994 t <<
" </detaileddescription>\n";
995 t <<
" </enumvalue>\n";
998 t <<
" <briefdescription>\n";
1000 t <<
" </briefdescription>\n";
1001 t <<
" <detaileddescription>\n";
1003 t <<
" </detaileddescription>\n";
1004 t <<
" <inbodydescription>\n";
1006 t <<
" </inbodydescription>\n";
1009 t <<
" <location file=\""
1034 for (
const auto &refmd : refList)
1039 for (
const auto &refmd : refByList)
1044 t <<
" </memberdef>\n";
1062 for (
const auto &md : *ml)
1070 if (count==0)
return;
1072 t <<
" <sectiondef kind=\"" << kind <<
"\">\n";
1073 if (!header.isEmpty())
1075 t <<
" <header>" <<
convertToXML(header) <<
"</header>\n";
1077 if (!documentation.isEmpty())
1079 t <<
" <description>";
1081 t <<
"</description>\n";
1083 for (
const auto &md : *ml)
1090 t <<
" </sectiondef>\n";
1095 t <<
" <listofallmembers>\n";
1098 for (
auto &mi : *mni)
1106 md->
anchor() <<
"\" prot=\"";
1109 case Public: t <<
"public";
break;
1110 case Protected: t <<
"protected";
break;
1111 case Private: t <<
"private";
break;
1112 case Package: t <<
"package";
break;
1117 case Normal: t <<
"non-virtual";
break;
1118 case Virtual: t <<
"virtual";
break;
1119 case Pure: t <<
"pure-virtual";
break;
1122 if (!mi->ambiguityResolutionScope().isEmpty())
1124 t <<
" ambiguityscope=\"" <<
convertToXML(mi->ambiguityResolutionScope()) <<
"\"";
1131 t <<
" </listofallmembers>\n";
1136 for (
const auto &cd : cl)
1138 if (!cd->isHidden() && !cd->isAnonymous())
1142 switch(cd->protection())
1144 case Public: t <<
"public";
break;
1145 case Protected: t <<
"protected";
break;
1146 case Private: t <<
"private";
break;
1147 case Package: t <<
"package";
break;
1149 t <<
"\">" <<
convertToXML(cd->name()) <<
"</innerclass>\n";
1156 for (
const auto &nd : nl)
1158 if (!nd->isHidden() && !nd->isAnonymous())
1160 t <<
" <innernamespace refid=\"" << nd->getOutputFileBase()
1161 <<
"\"" << (nd->isInline() ?
" inline=\"yes\"" :
"")
1162 <<
">" <<
convertToXML(nd->name()) <<
"</innernamespace>\n";
1169 for (
const auto &fd : fl)
1171 t <<
" <innerfile refid=\"" << fd->getOutputFileBase()
1172 <<
"\">" <<
convertToXML(fd->name()) <<
"</innerfile>\n";
1178 for (
const auto &pd : pl)
1180 t <<
" <innerpage refid=\"" << pd->getOutputFileBase();
1181 if (pd->getGroupDef())
1183 t <<
"_" << pd->name();
1185 t <<
"\">" <<
convertToXML(pd->title()) <<
"</innerpage>\n";
1191 for (
const auto &sgd : gl)
1193 t <<
" <innergroup refid=\"" << sgd->getOutputFileBase()
1195 <<
"</innergroup>\n";
1203 for(
const auto subdir : *dl)
1205 t <<
" <innerdir refid=\"" << subdir->getOutputFileBase()
1206 <<
"\">" <<
convertToXML(subdir->displayName()) <<
"</innerdir>\n";
1224 t <<
" local=\"" << (ii->local ?
"yes" :
"no") <<
"\">";
1226 t <<
"</includes>\n";
1255 msg(
"Generating XML output for class %s\n",
qPrint(cd->
name()));
1263 std::ofstream f(fileName.
str(),std::ofstream::out | std::ofstream::binary);
1266 err(
"Cannot open file %s for writing!\n",
qPrint(fileName));
1272 t <<
" <compounddef id=\""
1278 case Public: t <<
"public";
break;
1279 case Protected: t <<
"protected";
break;
1280 case Private: t <<
"private";
break;
1281 case Package: t <<
"package";
break;
1283 if (cd->
isFinal()) t <<
"\" final=\"yes";
1284 if (cd->
isSealed()) t <<
"\" sealed=\"yes";
1285 if (cd->
isAbstract()) t <<
"\" abstract=\"yes";
1287 t <<
" <compoundname>";
1289 t <<
"</compoundname>\n";
1292 t <<
" <basecompoundref ";
1293 if (bcd.classDef->isLinkable())
1300 case Public: t <<
"public";
break;
1301 case Protected: t <<
"protected";
break;
1302 case Private: t <<
"private";
break;
1308 case Normal: t <<
"non-virtual";
break;
1309 case Virtual: t <<
"virtual";
break;
1310 case Pure: t <<
"pure-virtual";
break;
1313 if (!bcd.templSpecifiers.isEmpty())
1317 bcd.classDef->name(),bcd.templSpecifiers)
1324 t <<
"</basecompoundref>\n";
1328 t <<
" <derivedcompoundref refid=\""
1333 case Public: t <<
"public";
break;
1334 case Protected: t <<
"protected";
break;
1335 case Private: t <<
"private";
break;
1341 case Normal: t <<
"non-virtual";
break;
1342 case Virtual: t <<
"virtual";
break;
1343 case Pure: t <<
"pure-virtual";
break;
1345 t <<
"\">" <<
convertToXML(bcd.classDef->displayName())
1346 <<
"</derivedcompoundref>\n";
1357 mg->documentation());
1370 t <<
" <requiresclause>";
1372 t <<
" </requiresclause>\n";
1375 t <<
" <briefdescription>\n";
1377 t <<
" </briefdescription>\n";
1378 t <<
" <detaileddescription>\n";
1380 t <<
" </detaileddescription>\n";
1384 t <<
" <inheritancegraph>\n";
1386 t <<
" </inheritancegraph>\n";
1391 t <<
" <collaborationgraph>\n";
1393 t <<
" </collaborationgraph>\n";
1395 t <<
" <location file=\""
1411 t <<
" </compounddef>\n";
1412 t <<
"</doxygen>\n";
1414 ti <<
" </compound>\n";
1422 <<
"\" kind=\"concept\"" <<
"><name>"
1427 std::ofstream f(fileName.
str(),std::ofstream::out | std::ofstream::binary);
1430 err(
"Cannot open file %s for writing!\n",
qPrint(fileName));
1436 <<
"\" kind=\"concept\">\n";
1437 t <<
" <compoundname>";
1439 t <<
"</compoundname>\n";
1442 t <<
" <initializer>";
1444 t <<
" </initializer>\n";
1445 t <<
" <briefdescription>\n";
1447 t <<
" </briefdescription>\n";
1448 t <<
" <detaileddescription>\n";
1450 t <<
" </detaileddescription>\n";
1451 t <<
" <location file=\""
1455 t <<
" </compounddef>\n";
1456 t <<
"</doxygen>\n";
1458 ti <<
" </compound>\n";
1475 <<
"\" kind=\"namespace\"" <<
"><name>"
1480 std::ofstream f(fileName.
str(),std::ofstream::out | std::ofstream::binary);
1483 err(
"Cannot open file %s for writing!\n",
qPrint(fileName));
1490 <<
"\" kind=\"namespace\" "
1491 << (nd->
isInline()?
"inline=\"yes\" ":
"")
1494 t <<
" <compoundname>";
1496 t <<
"</compoundname>\n";
1504 mg->documentation());
1515 t <<
" <briefdescription>\n";
1517 t <<
" </briefdescription>\n";
1518 t <<
" <detaileddescription>\n";
1520 t <<
" </detaileddescription>\n";
1521 t <<
" <location file=\""
1525 t <<
" </compounddef>\n";
1526 t <<
"</doxygen>\n";
1528 ti <<
" </compound>\n";
1555 std::ofstream f(fileName.
str(),std::ofstream::out | std::ofstream::binary);
1558 err(
"Cannot open file %s for writing!\n",
qPrint(fileName));
1565 <<
"\" kind=\"file\" language=\""
1567 t <<
" <compoundname>";
1569 t <<
"</compoundname>\n";
1574 if (inc.fileDef && !inc.fileDef->isReference())
1576 t <<
" refid=\"" << inc.fileDef->getOutputFileBase() <<
"\"";
1578 t <<
" local=\"" << (inc.local ?
"yes" :
"no") <<
"\">";
1579 t << inc.includeName;
1580 t <<
"</includes>\n";
1585 t <<
" <includedby";
1586 if (inc.fileDef && !inc.fileDef->isReference())
1588 t <<
" refid=\"" << inc.fileDef->getOutputFileBase() <<
"\"";
1590 t <<
" local=\"" << (inc.local ?
"yes" :
"no") <<
"\">";
1591 t << inc.includeName;
1592 t <<
"</includedby>\n";
1598 t <<
" <incdepgraph>\n";
1600 t <<
" </incdepgraph>\n";
1606 t <<
" <invincdepgraph>\n";
1608 t <<
" </invincdepgraph>\n";
1617 mg->documentation());
1628 t <<
" <briefdescription>\n";
1630 t <<
" </briefdescription>\n";
1631 t <<
" <detaileddescription>\n";
1633 t <<
" </detaileddescription>\n";
1639 t <<
" </compounddef>\n";
1640 t <<
"</doxygen>\n";
1642 ti <<
" </compound>\n";
1666 std::ofstream f(fileName.
str(),std::ofstream::out | std::ofstream::binary);
1669 err(
"Cannot open file %s for writing!\n",
qPrint(fileName));
1675 t <<
" <compounddef id=\""
1689 mg->documentation());
1700 t <<
" <briefdescription>\n";
1702 t <<
" </briefdescription>\n";
1703 t <<
" <detaileddescription>\n";
1705 t <<
" </detaileddescription>\n";
1706 t <<
" </compounddef>\n";
1707 t <<
"</doxygen>\n";
1709 ti <<
" </compound>\n";
1721 std::ofstream f(fileName.
str(),std::ofstream::out | std::ofstream::binary);
1724 err(
"Cannot open file %s for writing!\n",
qPrint(fileName));
1730 t <<
" <compounddef id=\""
1737 t <<
" <briefdescription>\n";
1739 t <<
" </briefdescription>\n";
1740 t <<
" <detaileddescription>\n";
1742 t <<
" </detaileddescription>\n";
1744 t <<
" </compounddef>\n";
1745 t <<
"</doxygen>\n";
1747 ti <<
" </compound>\n";
1757 const char *kindName = isExample ?
"example" :
"page";
1766 if (pageName==
"index") pageName=
"indexpage";
1768 ti <<
" <compound refid=\"" << pageName
1773 QCString fileName=outputDirectory+
"/"+pageName+
".xml";
1774 std::ofstream f(fileName.
str(),std::ofstream::out | std::ofstream::binary);
1777 err(
"Cannot open file %s for writing!\n",
qPrint(fileName));
1783 t <<
" <compounddef id=\"" << pageName;
1784 t <<
"\" kind=\"" << kindName <<
"\">\n";
1786 <<
"</compoundname>\n";
1815 t <<
" <tableofcontents>\n";
1824 int nextLevel = (int)si->type();
1825 if (nextLevel>level)
1827 for (l=level;l<nextLevel;l++)
1829 if (l < maxLevel) t <<
" <tableofcontents>\n";
1832 else if (nextLevel<level)
1834 for (l=level;l>nextLevel;l--)
1836 if (l <= maxLevel && inLi[l]) t <<
" </tocsect>\n";
1838 if (l <= maxLevel) t <<
" </tableofcontents>\n";
1841 if (nextLevel <= maxLevel)
1843 if (inLi[nextLevel]) t <<
" </tocsect>\n";
1845 t <<
" <tocsect>\n";
1846 t <<
" <name>" << (si->title().isEmpty()?si->label():titleDoc) <<
"</name>\n";
1848 inLi[nextLevel]=
TRUE;
1853 while (level>1 && level <= maxLevel)
1855 if (inLi[level]) t <<
" </tocsect>\n";
1857 t <<
" </tableofcontents>\n";
1860 if (level <= maxLevel && inLi[level]) t <<
" </tocsect>\n";
1862 t <<
" </tableofcontents>\n";
1864 t <<
" <briefdescription>\n";
1866 t <<
" </briefdescription>\n";
1867 t <<
" <detaileddescription>\n";
1878 t <<
" </detaileddescription>\n";
1882 t <<
" </compounddef>\n";
1883 t <<
"</doxygen>\n";
1885 ti <<
" </compound>\n";
1899 Dir xmlDir(outputDirectory.
str());
1906 QCString fileName=outputDirectory+
"/compound.xsd";
1907 std::ofstream f(fileName.
str(),std::ofstream::out | std::ofstream::binary);
1910 err(
"Cannot open file %s for writing!\n",
qPrint(fileName));
1918 const char *startLine = compound_xsd.
data();
1922 const char *endLine = startLine+1;
1923 while (*endLine && *(endLine-1)!=
'\n') endLine++;
1924 int len=
static_cast<int>(endLine-startLine);
1928 if (s.
find(
"<!-- Automatically insert here the HTML entities -->")!=-1)
1934 t.
write(startLine,len);
1942 fileName=outputDirectory+
"/Doxyfile.xml";
1943 f.open(fileName.
str(),std::ofstream::out | std::ofstream::binary);
1946 err(
"Cannot open file %s for writing\n",fileName.
data());
1956 fileName=outputDirectory+
"/index.xml";
1957 f.open(fileName.
str(),std::ofstream::out | std::ofstream::binary);
1960 err(
"Cannot open file %s for writing!\n",
qPrint(fileName));
1968 t <<
"<?xml version='1.0' encoding='UTF-8' standalone='no'?>\n";;
1969 t <<
"<doxygenindex xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" ";
1970 t <<
"xsi:noNamespaceSchemaLocation=\"index.xsd\" ";
1971 t <<
"version=\"" << getDoxygenVersion() <<
"\" ";
1981 msg(
"Generating XML output for concept %s\n",
qPrint(cd->name()));
1986 msg(
"Generating XML output for namespace %s\n",
qPrint(nd->name()));
1991 for (
const auto &fd : *fn)
1993 msg(
"Generating XML output for file %s\n",
qPrint(fd->name()));
1999 msg(
"Generating XML output for group %s\n",
qPrint(gd->name()));
2004 msg(
"Generating XML output for page %s\n",
qPrint(pd->name()));
2009 msg(
"Generate XML output for dir %s\n",
qPrint(dd->name()));
2014 msg(
"Generating XML output for example %s\n",
qPrint(pd->name()));
2019 msg(
"Generating XML output for the main page\n");
2024 t <<
"</doxygenindex>\n";
virtual QCString requiresClause() const =0
static void writeTemplateArgumentList(TextStream &t, const ArgumentList &al, const Definition *scope, const FileDef *fileScope, int indent)
virtual QCString getDefFileExtension() const =0
RefQualifierType refQualifier() const
bool copyResource(const QCString &name, const QCString &targetDir) const
Copies a registered resource to a given target directory
void writeCodeLink(CodeSymbolType type, const QCString &ref, const QCString &file, const QCString &anchor, const QCString &name, const QCString &tooltip) override
virtual LocalToc localToc() const =0
virtual const MemberLists & getMemberLists() const =0
static void writeInnerNamespaces(const NamespaceLinkedRefMap &nl, TextStream &t)
virtual QCString getOutputFileBase() const =0
static ResourceMgr & instance()
Returns the one and only instance of this class
void writeXMLSchema(TextStream &t)
virtual int getDeclColumn() const =0
virtual QCString getOutputFileBase() const =0
static void generateXMLForGroup(const GroupDef *gd, TextStream &ti)
static void generateXMLSection(const Definition *d, TextStream &ti, TextStream &t, const MemberList *ml, const QCString &kind, const QCString &header=QCString(), const QCString &documentation=QCString())
static void generateXMLForFile(FileDef *fd, TextStream &ti)
QCString langToString(SrcLangExt lang)
Returns a string representation of lang.
virtual int docLine() const =0
virtual int getDeclLine() const =0
void writeXMLCodeString(TextStream &t, const QCString &str, int &col)
@ MemberListType_priStaticMethods
virtual bool isConstrained() const =0
@ MemberListType_priStaticAttribs
static std::unique_ptr< PageDef > mainPage
Protection
Protection level of members
virtual QCString argsString() const =0
static void generateXMLForDir(DirDef *dd, TextStream &ti)
virtual QCString briefDescription(bool abbr=FALSE) const =0
virtual int getDefColumn() const =0
QCString getAsString(const QCString &name) const
Gets the resource data as a C string
The common base class of all entity definitions found in the sources.
static void writeXMLHeader(TextStream &t)
virtual QCString documentation() const =0
@ MemberListType_pacStaticAttribs
virtual bool isStatic() const =0
An abstract interface of a namespace symbol.
@ MemberListType_services
Class representing a directory in the file system
void startCodeFragment(const QCString &) override
virtual QCString getOutputFileBase() const =0
virtual const ClassLinkedRefMap & getClasses() const =0
void writeXML(TextStream &t)
void writeBreak(int) const
virtual bool isMaybeDefault() const =0
static void generateXMLForMember(const MemberDef *md, TextStream &ti, TextStream &t, const Definition *def)
static void writeInnerPages(const PageLinkedRefMap &pl, TextStream &t)
uint length() const
Returns the length of the string, not counting the 0-terminator.
virtual bool isMaybeVoid() const =0
static void generateXMLForPage(PageDef *pd, TextStream &ti, bool isExample)
This class represents an function or template argument list.
virtual bool isAttribute() const =0
static ConceptLinkedMap * conceptLinkedMap
virtual QCString compoundTypeString() const =0
Returns the type of compound as a string
virtual bool isInitonly() const =0
A model of a directory symbol.
virtual int getDefLine() const =0
void writeTooltip(const QCString &, const DocLinkInfo &, const QCString &, const QCString &, const SourceLinkInfo &, const SourceLinkInfo &) override
QCString filterTitle(const QCString &title)
@ MemberListType_priAttribs
bool isEmpty() const
Returns TRUE iff the string is empty
static const char * xmlSectionMapper(MemberListType ml)
virtual const MemberLists & getMemberLists() const =0
virtual const NamespaceLinkedRefMap & getNamespaces() const =0
virtual const GroupDef * getGroupDef() const =0
static PageLinkedMap * pageLinkedMap
virtual const MemberLists & getMemberLists() const =0
Returns the list containing the list of members sorted per type
virtual QCString groupTitle() const =0
void endCodeLine() override
static void stripQualifiers(QCString &typeStr)
void writeXMLString(TextStream &t, const QCString &s)
virtual const IncludeInfo * includeInfo() const =0
@ MemberListType_pubTypes
virtual QCString bitfieldString() const =0
virtual const PageLinkedRefMap & getSubPages() const =0
virtual const FileList & getFiles() const =0
virtual bool hasMultiLineInitializer() const =0
virtual const MemberVector & getReferencedByMembers() const =0
SrcLangExt
Language as given by extension
@ MemberListType_priSlots
@ MemberListType_dcopMethods
virtual bool isInline() const =0
virtual bool isInline() const =0
Specifier
Virtualness of a member.
virtual bool isHidden() const =0
virtual bool isFriendClass() const =0
static void writeXMLDocBlock(TextStream &t, const QCString &fileName, int lineNr, const Definition *scope, const MemberDef *md, const QCString &text)
virtual bool isProtectedGettable() const =0
virtual bool isFinal() const =0
Returns TRUE if this class is marked as final
@ MemberListType_decDictionaryMembers
virtual bool isRetain() const =0
virtual const IncludeInfoList & includedByFileList() const =0
void err(const char *fmt,...)
virtual int inbodyLine() const =0
virtual const GroupList & getSubGroups() const =0
static std::map< MemberListType, std::string > g_xmlSectionMap
static void generateXMLForClass(const ClassDef *cd, TextStream &ti)
char & at(size_t i)
Returns a reference to the character at index i.
Text streaming class that buffers data.
static DirLinkedMap * dirLinkedMap
virtual Protection protection() const =0
Return the protection level (Public,Protected,Private) in which this compound was found.
int find(char c, int index=0, bool cs=TRUE) const
@ MemberListType_proAttribs
static void writeCombineScript()
void writeLineNumber(const QCString &extRef, const QCString &compId, const QCString &anchorId, int l, bool writeLineAnchor) override
virtual int briefLine() const =0
static void writeInnerFiles(const FileList &fl, TextStream &t)
virtual const IncludeInfo * includeInfo() const =0
@ MemberListType_pubMethods
virtual const MemberGroupList & getMemberGroups() const =0
static QCString memberOutputFileBase(const MemberDef *md)
bool volatileSpecifier() const
virtual bool isWeak() const =0
virtual FileDef * getFileDef() const =0
Returns the namespace this compound is in, or 0 if it has a global scope.
virtual const QCString & docName() const =0
static HtmlEntityMapper * instance()
Returns the one and only instance of the HTML entity mapper
virtual QCString docFile() const =0
static void generateXMLForNamespace(const NamespaceDef *nd, TextStream &ti)
virtual SrcLangExt getLanguage() const =0
Returns the programming language this definition was written in.
void writeLink(const QCString &extRef, const QCString &file, const QCString &anchor, const QCString &text) const
@ MemberListType_interfaces
bool hasParameters() const
@ MemberListType_declarationLists
virtual QCString getReadAccessor() const =0
virtual const ClassLinkedRefMap & getClasses() const =0
virtual bool isConstExpr() const =0
virtual const ClassDef * templateMaster() const =0
Returns the template master of which this class is an instance.
@ MemberListType_decSequenceMembers
A model of a page symbol.
A model of a group of symbols.
virtual bool isNew() const =0
static FileNameLinkedMap * inputNameLinkedMap
virtual QCString trISOLang()=0
virtual QCString anchor() const =0
virtual bool isRequired() const =0
virtual const FileDef * getBodyDef() const =0
virtual QCString getOutputFileBase() const =0
A model of a class/file/namespace member symbol.
@ MemberListType_decProtoMembers
static void writeTemplateList(const ClassDef *cd, TextStream &t)
@ MemberListType_pubSlots
A abstract class representing of a compound symbol.
@ MemberListType_decVarMembers
QCString stripWhiteSpace() const
returns a copy of this string with leading and trailing whitespace removed
static void writeMemberTemplateLists(const MemberDef *md, TextStream &t)
#define Config_getInt(name)
@ MemberListType_proStaticMethods
bool m_normalHLNeedStartTag
virtual QCString initializer() const =0
virtual QCString excpString() const =0
virtual QCString name() const =0
virtual const MemberNameInfoLinkedMap & memberNameInfoLinkedMap() const =0
Returns a dictionary of all members.
virtual Specifier virtualness(int count=0) const =0
MemberListType listType() const
virtual bool isRaisable() const =0
virtual const MemberVector & enumFieldList() const =0
virtual const MemberVector & getReferencesMembers() const =0
static ParserManager * parserManager
virtual bool isAnonymous() const =0
virtual ArgumentList getTemplateParameterList() const =0
Class representing the data associated with a #include statement.
virtual QCString getOutputFileBase() const =0
Returns the unique base name (without extension) of the class's file on disk
virtual const BaseClassList & baseClasses() const =0
Returns the list of base classes from which this class directly inherits.
virtual const MemberGroupList & getMemberGroups() const =0
virtual ClassLinkedRefMap getClasses() const =0
static bool memberVisible(const Definition *d, const MemberDef *md)
Translator * theTranslator
virtual bool isReference() const =0
virtual QCString inbodyDocumentation() const =0
virtual QCString name() const =0
TextGeneratorXMLImpl(TextStream &t)
static GroupLinkedMap * groupLinkedMap
virtual ClassLinkedRefMap getClasses() const =0
returns the classes nested into this class
This class contains the information about the argument of a function or template
XMLCodeGenerator(TextStream &t)
Abstract interface for a hyperlinked text fragment.
virtual QCString definition() const =0
virtual const ClassDef * getClassDef() const =0
virtual bool isFinal() const =0
DocRoot * validatingParseDoc(IDocParser &parserIntf, const QCString &fileName, int startLine, const Definition *ctx, const MemberDef *md, const QCString &input, bool indexWords, bool isExample, const QCString &exampleName, bool singleLine, bool linkFromIndex, bool markdownSupport)
virtual bool isMutable() const =0
static void writeIncludeInfo(const IncludeInfo *ii, TextStream &t)
QCString getLanguageSpecificSeparator(SrcLangExt lang, bool classScope)
Returns the scope separator to use given the programming language lang
QCString fileToString(const QCString &name, bool filter, bool isSourceCode)
std::unique_ptr< CodeParserInterface > getCodeParser(const QCString &extension)
Gets the interface to the parser associated with a given extension.
static void writeInnerDirs(const DirList *dl, TextStream &t)
void linkifyText(const TextGeneratorIntf &out, const Definition *scope, const FileDef *fileScope, const Definition *self, const QCString &text, bool autoBreak, bool external, bool keepSpaces, int indentLevel)
SrcLangExt getLanguageFromFileName(const QCString &fileName, SrcLangExt defLang)
virtual QCString briefDescription(bool abbreviate=FALSE) const =0
virtual const NamespaceLinkedRefMap & getNamespaces() const =0
virtual int getStartBodyLine() const =0
virtual int getEndBodyLine() const =0
virtual const NamespaceDef * getNamespaceDef() const =0
void codify(const QCString &text) override
Generator for producing XML formatted source code.
@ MemberListType_pacAttribs
bool constSpecifier() const
void writeCodeAnchor(const QCString &) override
virtual const MemberDef * reimplements() const =0
virtual Protection protection() const =0
const T * find(const std::string &key) const
Find an object given the key.
virtual NamespaceLinkedRefMap getNamespaces() const =0
QCString insertTemplateSpecifierInScope(const QCString &scope, const QCString &templ)
bool fill(char c, int len=-1)
Fills a string with a predefined character
@ MemberListType_decEnumMembers
@ MemberListType_pacTypes
virtual bool isStrong() const =0
virtual bool isWritable() const =0
Implements TextGeneratorIntf for an XML stream.
@ MemberListType_priTypes
Representation of a class inheritance or dependency graph
void writeXMLLink(TextStream &t, const QCString &extRef, const QCString &compoundId, const QCString &anchorId, const QCString &text, const QCString &tooltip)
virtual DefType definitionType() const =0
virtual const BaseClassList & subClasses() const =0
Returns the list of sub classes that directly derive from this class
@ MemberListType_pubStaticAttribs
virtual QCString getDeclFileName() const =0
@ MemberListType_decDefineMembers
virtual QCString briefFile() const =0
virtual bool hasOneLineInitializer() const =0
void clearSubDirs(const Dir &d)
virtual const SectionRefs & getSectionRefs() const =0
returns the section dictionary, only of importance for pagedef
virtual const MemberLists & getMemberLists() const =0
@ MemberListType_proMethods
virtual const PageLinkedRefMap & getPages() const =0
Various UTF8 related helper functions.
const char * writeUTF8Char(TextStream &t, const char *s)
Writes the UTF8 character pointed to by s to stream t and returns a pointer to the next character.
@ MemberListType_decFuncMembers
@ MemberListType_proTypes
static void writeListOfAllMembers(const ClassDef *cd, TextStream &t)
virtual bool isSettable() const =0
void writeXML(TextStream &t)
virtual const MemberVector & reimplementedBy() const =0
QCString mid(size_t index, size_t len=static_cast< size_t >(-1)) const
@ MemberListType_pacMethods
virtual bool isAddable() const =0
void startCodeLine(bool) override
@ MemberListType_proStaticAttribs
virtual const ArgumentList & templateArguments() const =0
@ MemberListType_detailedLists
virtual QCString getOutputFileBase() const =0
virtual bool isAbstract() const =0
Returns TRUE if there is at least one pure virtual member in this class.
virtual bool isPrivateGettable() const =0
#define Config_getBool(name)
virtual QCString getOutputFileBase() const =0
virtual bool isRemovable() const =0
virtual QCString getScopeString() const =0
static SectionManager & instance()
returns a reference to the singleton
static void writeInnerGroups(const GroupList &gl, TextStream &t)
virtual bool isUNOProperty() const =0
@ MemberListType_priMethods
void msg(const char *fmt,...)
virtual bool isSealed() const =0
virtual QCString documentation() const =0
virtual const ArgumentList & declArgumentList() const =0
virtual bool isReference() const =0
Returns TRUE if this class is imported via a tag file
virtual bool isReadonly() const =0
virtual bool isExplicit() const =0
virtual Definition * getOuterScope() const =0
@ MemberListType_proSlots
@ MemberListType_decTypedefMembers
virtual QCString absFilePath() const =0
virtual bool isArtificial() const =0
const char * qPrint(const char *s)
class that represents a list of constant references to sections.
virtual const FileDef * getFileDef() const =0
#define Config_getString(name)
constexpr bool isSection(SectionType type)
return true if type is a section, and false if it is a page, anchor or table.
virtual QCString getDefFileName() const =0
class that provide information about a section.
void endFontClass() override
virtual const ArgumentList & argumentList() const =0
@ MemberListType_pubAttribs
QCString convertCharEntitiesToUTF8(const QCString &str)
static NamespaceLinkedMap * namespaceLinkedMap
const char * data() const
Returns a pointer to the contents of the string in the form of a 0-terminated C string
virtual const FileList & getFiles() const =0
QCString convertToXML(const QCString &s, bool keepEntities)
virtual bool isGettable() const =0
A model of a file symbol.
void endCodeFragment(const QCString &) override
virtual const MemberGroupList & getMemberGroups() const =0
virtual QCString enumBaseType() const =0
virtual const FileDef * getFileDef() const =0
Representation of an include dependency graph
void writeString(const QCString &s, bool) const
static void writeMemberReference(TextStream &t, const Definition *def, const MemberDef *rmd, const QCString &tagName)
virtual QCString getWriteAccessor() const =0
static QCString stripFromPath(const QCString &path, const StringVector &l)
void writeXMLCodeBlock(TextStream &t, FileDef *fd)
bool isXmlEnabled() const
virtual bool isNoExcept() const =0
@ MemberListType_pacStaticMethods
virtual QCString displayName(bool=TRUE) const =0
static void generateXMLForConcept(const ConceptDef *cd, TextStream &ti)
virtual bool isSealed() const =0
Returns TRUE if this class is marked as sealed
virtual bool isReadable() const =0
virtual bool isMaybeAmbiguous() const =0
virtual const MemberGroupList & getMemberGroups() const =0
Returns the member groups defined for this class
virtual const DirList & subDirs() const =0
@ MemberListType_properties
virtual bool isCopy() const =0
void writeXMLDoxyfile(TextStream &t)
virtual bool isOptional() const =0
static ClassLinkedMap * classLinkedMap
virtual const QCString & initializer() const =0
virtual QCString getOutputFileBase() const =0
A bunch of utility functions.
void createSubDirs(const Dir &d)
virtual QCString typeString() const =0
virtual bool isPrivateSettable() const =0
virtual QCString requiresClause() const =0
@ MemberListType_pubStaticMethods
bool hasDocumentation() const
A list of MemberDef objects as shown in documentation sections.
bool stripPrefix(const QCString &prefix)
QCString & prepend(const char *s)
bool resize(size_t newlen)
Resizes the string to hold newlen characters (this value should also count the 0-terminator).
virtual MemberType memberType() const =0
static void writeInnerClasses(const ClassLinkedRefMap &cl, TextStream &t)
virtual bool isBound() const =0
virtual const ArgumentList & templateArguments() const =0
Returns the template arguments of this class
virtual bool isProtectedSettable() const =0
virtual const GroupDef * getGroupDef() const =0
static QCString classOutputFileBase(const ClassDef *cd)
virtual bool isTransient() const =0
virtual bool isAssign() const =0
void startFontClass(const QCString &colorClass) override
std::unique_ptr< IDocParser > createDocParser()
static PageLinkedMap * exampleLinkedMap
virtual const IncludeInfoList & includeFileList() const =0
void write(const char *buf, size_t len)
Adds a array of character to the stream
This is an alternative implementation of QCString.