57#define XML_DB(x) do {} while(0)
83 if (str.
empty())
return;
85 const char *s = str.
data();
99 int spacesToNextTabStop = tabSize - (col%tabSize);
100 while (spacesToNextTabStop--)
102 if (col>=stripIndentAmount) t <<
"<sp/>";
108 if (col>=stripIndentAmount) t <<
"<sp/>";
111 case '<': t <<
"<"; col++;
break;
112 case '>': t <<
">"; col++;
break;
113 case '&': t <<
"&"; col++;
break;
114 case '\'': t <<
"'"; col++;
break;
115 case '"': t <<
"""; col++;
break;
116 case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
case 7:
case 8:
117 case 11:
case 12:
case 13:
case 14:
case 15:
case 16:
case 17:
case 18:
118 case 19:
case 20:
case 21:
case 22:
case 23:
case 24:
case 25:
case 26:
119 case 27:
case 28:
case 29:
case 30:
case 31:
121 t <<
"<sp value=\"" << int(c) <<
"\"/>";
132 t <<
"<?xml version='1.0' encoding='UTF-8' standalone='no'?>\n";
133 t <<
"<doxygen xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" ";
134 t <<
"xsi:noNamespaceSchemaLocation=\"compound.xsd\" ";
135 t <<
"version=\"" << getDoxygenVersion() <<
"\" ";
143 DString fileName=outputDirectory+
"/combine.xslt";
147 err(
"Cannot open file {} for writing!\n",fileName);
152 "<!-- XSLT script to combine the generated output into a single file. \n"
153 " If you have xsltproc you could use:\n"
154 " xsltproc combine.xslt index.xml >all.xml\n"
156 "<xsl:stylesheet xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\" version=\"1.0\">\n"
157 " <xsl:output method=\"xml\" version=\"1.0\" indent=\"no\" standalone=\"yes\" />\n"
158 " <xsl:template match=\"/\">\n"
159 " <doxygen version=\"{doxygenindex/@version}\" xml:lang=\"{doxygenindex/@xml:lang}\">\n"
160 " <!-- Load all doxygen generated xml files -->\n"
161 " <xsl:for-each select=\"doxygenindex/compound\">\n"
162 " <xsl:copy-of select=\"document( concat( @refid, '.xml' ) )/doxygen/*\" />\n"
166 "</xsl:stylesheet>\n";
173 t <<
"<ref refid=\"" << compoundId;
174 if (!anchorId.
empty()) t <<
"_1" << anchorId;
175 t <<
"\" kindref=\"";
176 if (!anchorId.
empty()) t <<
"member";
else t <<
"compound";
178 if (!extRef.
empty()) t <<
" external=\"" << extRef <<
"\"";
196 const DString &anchor,std::string_view text
217 *
m_t <<
"<highlight class=\"normal\">";
249 XML_DB((
"(writeCodeLink)\n"));
252 *
m_t <<
"<highlight class=\"normal\">";
264 XML_DB((
"(writeToolTip)\n"));
271 XML_DB((
"(startCodeLine)\n"));
281 *
m_t <<
" refkind=\"member\"";
285 *
m_t <<
" refkind=\"compound\"";
301 XML_DB((
"(endCodeLine)\n"));
304 *
m_t <<
"</highlight>";
309 *
m_t <<
"</codeline>\n";
320 XML_DB((
"(startFontClass)\n"));
323 *
m_t <<
"</highlight>";
326 *
m_t <<
"<highlight class=\"" << colorClass <<
"\">";
333 XML_DB((
"(endFontClass)\n"));
334 *
m_t <<
"</highlight>";
341 XML_DB((
"(writeCodeAnchor)\n"));
345 const DString &anchorId,
int l,
bool)
348 XML_DB((
"(writeLineNumber)\n"));
363 XML_DB((
"(startCodeFragment)\n"));
364 *
m_t <<
" <programlisting>\n";
369 XML_DB((
"(endCodeFragment)\n"));
370 *
m_t <<
" </programlisting>\n";
382 indentStr.
fill(
' ',indent);
387 t << indentStr <<
"<templateparamlist>\n";
390 t << indentStr <<
" <param>\n";
393 t << indentStr <<
" <type>";
399 t << indentStr <<
" <declname>" <<
convertToXML(a.name) <<
"</declname>\n";
400 t << indentStr <<
" <defname>" <<
convertToXML(a.name) <<
"</defname>\n";
402 if (!a.defval.empty())
404 t << indentStr <<
" <defval>";
408 if (!a.typeConstraint.empty())
410 t << indentStr <<
" <typeconstraint>";
412 t <<
"</typeconstraint>\n";
414 if (a.hasTemplateDocumentation())
416 t << indentStr <<
" <briefdescription>\n";
417 t << indentStr <<
" ";
426 t << indentStr <<
" </briefdescription>\n";
428 t << indentStr <<
" </param>\n";
430 t << indentStr <<
"</templateparamlist>\n";
457 if (stext.
empty())
return;
468 auto astImpl =
dynamic_cast<const DocNodeAST*
>(ast.get());
477 std::visit(visitor,astImpl->root);
486 intf->resetCodeParserState();
490 intf->parseCode(xmlList,
505 if (!scope.
empty() && scope!=def->
name())
509 t <<
" <" << tagName <<
" refid=\"";
520 t <<
">" <<
convertToXML(name) <<
"</" << tagName <<
">\n";
535 else if (typeStr==
"virtual") typeStr=
"";
566 size_t searchStart = 0;
567 size_t searchEnd = str.
size();
568 size_t len = strlen(keyword);
569 while (searchStart<searchEnd)
571 size_t index = str.
find(keyword, searchStart);
576 size_t end = index + len;
579 if ((index>0 && str[index-1]!=
' ') ||
580 (
end!=searchEnd && str[
end] !=
' ')
587 if (needSpace && index>0)
589 str.
remove(index-1, len+1);
590 searchEnd -= (len+1);
592 else if (needSpace &&
end<searchEnd)
595 searchEnd -= (len+1);
613 int bracketCount = 1;
616 bool insideString =
false;
617 bool insideChar =
false;
619 while (!found && p<argsStr.
length())
621 char c = argsStr[p++];
624 if (c==
'"' && pc!=
'\\') insideString=
false;
628 if (c==
'\'' && pc!=
'\\') insideChar=
false;
634 case '(': bracketCount++;
break;
635 case ')': bracketCount--; found = bracketCount==0;
break;
636 case '"': insideString =
true;
break;
637 case '\'': insideChar =
true;
break;
642 expr = argsStr.
mid(i+9,p-i-10);
655 t <<
prefix <<
" <" << tagName <<
">\n";
656 for (
const auto &ref : refs)
661 t <<
prefix <<
" </" << tagName <<
">\n";
667 writeRefsForType(satisfiesRefs,
"satisfies");
668 writeRefsForType(verifiesRefs,
"verifies");
690 if (md->
memberType()==MemberType::EnumValue)
return;
719 argsStr +=
" override";
731 argsStr +=
"=default";
735 argsStr +=
"=delete";
737 i=defStr.
find(
"auto ");
740 defStr=defStr.
left(i)+typeStr+defStr.
mid(i+4);
747 <<
"_1" << md->
anchor() <<
"\" kind=\"" << memType <<
"\"><name>"
752 t <<
" <member refid=\""
754 <<
"_1" << md->
anchor() <<
"\" kind=\"" << memType <<
"\"><name>"
760 t <<
" <memberdef kind=\"";
761 t << memType <<
"\" id=\"";
768 t <<
"\" prot=\"" << to_string_lower(md->
protection());
772 if (md->
isStatic()) t <<
"yes";
else t <<
"no";
777 t <<
" nodiscard=\"yes\"";
782 t <<
" constexpr=\"yes\"";
787 t <<
" consteval=\"yes\"";
792 t <<
" constinit=\"yes\"";
797 t <<
" extern=\"yes\"";
808 if (md->
isExplicit()) t <<
"yes";
else t <<
"no";
812 if (md->
isInline()) t <<
"yes";
else t <<
"no";
824 t <<
" final=\"yes\"";
829 t <<
" sealed=\"yes\"";
839 t <<
" optional=\"yes\"";
844 t <<
" required=\"yes\"";
849 t <<
" noexcept=\"yes\"";
852 if (!noExceptExpr.
empty())
854 t <<
" noexceptexpression=\"" <<
convertToXML(noExceptExpr) <<
"\"";
859 t <<
" volatile=\"yes\"";
862 t <<
" virt=\"" << to_string_lower(md->
virtualness());
866 if (md->
memberType() == MemberType::Enumeration)
869 if (md->
isStrong()) t <<
"yes";
else t <<
"no";
880 if (md->
isMutable()) t <<
"yes";
else t <<
"no";
885 t <<
" thread_local=\"yes\"";
890 t <<
" initonly=\"yes\"";
894 t <<
" attribute=\"yes\"";
898 t <<
" property=\"yes\"";
902 t <<
" readonly=\"yes\"";
906 t <<
" bound=\"yes\"";
910 t <<
" removable=\"yes\"";
914 t <<
" constrained=\"yes\"";
918 t <<
" transient=\"yes\"";
922 t <<
" maybevoid=\"yes\"";
926 t <<
" maybedefault=\"yes\"";
930 t <<
" maybeambiguous=\"yes\"";
933 else if (md->
memberType() == MemberType::Property)
936 if (md->
isReadable()) t <<
"yes";
else t <<
"no";
940 if (md->
isWritable()) t <<
"yes";
else t <<
"no";
944 if (md->
isGettable()) t <<
"yes";
else t <<
"no";
947 t <<
" privategettable=\"";
951 t <<
" protectedgettable=\"";
956 if (md->
isSettable()) t <<
"yes";
else t <<
"no";
959 t <<
" privatesettable=\"";
963 t <<
" protectedsettable=\"";
971 else if (md->
isCopy()) t <<
"copy";
972 else if (md->
isRetain()) t <<
"retain";
973 else if (md->
isStrong()) t <<
"strong";
974 else if (md->
isWeak()) t <<
"weak";
978 else if (md->
memberType() == MemberType::Event)
981 if (md->
isAddable()) t <<
"yes";
else t <<
"no";
989 if (md->
isRaisable()) t <<
"yes";
else t <<
"no";
1007 t <<
" <definition>" <<
convertToXML(defStr) <<
"</definition>\n";
1008 t <<
" <argsstring>" <<
convertToXML(argsStr) <<
"</argsstring>\n";
1011 if (md->
memberType() == MemberType::Enumeration)
1019 t <<
" <name>" <<
convertToXML(nameStr) <<
"</name>\n";
1020 if (nameStr!=qualifiedNameStr)
1022 t <<
" <qualifiedname>" <<
convertToXML(qualifiedNameStr) <<
"</qualifiedname>\n";
1025 if (md->
memberType() == MemberType::Property)
1036 if (bitfield.
at(0)==
':') bitfield=bitfield.
mid(1);
1037 t <<
" <bitfield>" <<
convertToXML(bitfield) <<
"</bitfield>\n";
1043 t <<
" <reimplements refid=\""
1049 t <<
" <reimplementedby refid=\""
1051 <<
convertToXML(rbmd->name()) <<
"</reimplementedby>\n";
1056 t <<
" <qualifier>" <<
convertToXML(qmd) <<
"</qualifier>\n";
1071 bool isFortran = md->
getLanguage()==SrcLangExt::Fortran;
1074 auto defIt = defAl.
begin();
1079 if (defIt!=defAl.
end())
1085 if (!a.attrib.empty())
1087 t <<
" <attributes>";
1089 t <<
"</attributes>\n";
1091 if (isFortran && defArg && !defArg->
type.
empty())
1097 else if (!a.type.empty())
1103 if (!a.name.empty())
1107 t <<
"</declname>\n";
1109 if (defArg && !defArg->
name.
empty() && defArg->
name!=a.name)
1113 t <<
"</defname>\n";
1115 if (!a.array.empty())
1121 if (!a.defval.empty())
1129 t <<
" <briefdescription>";
1132 t <<
"</briefdescription>\n";
1138 else if (md->
memberType()==MemberType::Define &&
1144 t <<
" <param></param>\n";
1150 t <<
" <param><defname>" << a.type <<
"</defname></param>\n";
1156 t <<
" <requiresclause>";
1158 t <<
" </requiresclause>\n";
1163 t <<
" <initializer>";
1165 t <<
"</initializer>\n";
1170 t <<
" <exceptions>";
1172 t <<
"</exceptions>\n";
1176 if (md->
memberType()==MemberType::Enumeration)
1181 <<
"_1" << emd->anchor() <<
"\" kind=\"enumvalue\"><name>"
1185 << emd->anchor() <<
"\" prot=\"" << to_string_lower(emd->protection());
1190 if (!emd->initializer().empty())
1192 t <<
" <initializer>";
1194 t <<
"</initializer>\n";
1196 t <<
" <briefdescription>\n";
1197 writeXMLDocBlock(t,emd->briefFile(),emd->briefLine(),emd->getOuterScope(),emd,emd->briefDescription());
1198 t <<
" </briefdescription>\n";
1199 t <<
" <detaileddescription>\n";
1200 writeXMLDocBlock(t,emd->docFile(),emd->docLine(),emd->getOuterScope(),emd,emd->documentation());
1201 t <<
" </detaileddescription>\n";
1202 t <<
" </enumvalue>\n";
1205 t <<
" <briefdescription>\n";
1207 t <<
" </briefdescription>\n";
1208 t <<
" <detaileddescription>\n";
1210 t <<
" </detaileddescription>\n";
1211 t <<
" <inbodydescription>\n";
1213 t <<
" </inbodydescription>\n";
1216 t <<
" <location file=\""
1241 for (
const auto &refmd : refList)
1246 for (
const auto &refmd : refByList)
1251 t <<
" </memberdef>\n";
1267 if (ml==
nullptr)
return;
1269 for (
const auto &md : *ml)
1271 if (
memberVisible(d,md) && (md->memberType()!=MemberType::EnumValue) &&
1277 if (count==0)
return;
1279 t <<
" <sectiondef kind=\"" << kind <<
"\">\n";
1280 if (!header.empty())
1282 t <<
" <header>" <<
convertToXML(header) <<
"</header>\n";
1284 if (!documentation.empty())
1286 t <<
" <description>";
1288 t <<
"</description>\n";
1290 for (
const auto &md : *ml)
1297 t <<
" </sectiondef>\n";
1302 t <<
" <listofallmembers>\n";
1305 for (
auto &mi : *mni)
1313 md->
anchor() <<
"\" prot=\"" << to_string_lower(prot);
1314 t <<
"\" virt=\"" << to_string_lower(virt) <<
"\"";
1315 if (!mi->ambiguityResolutionScope().empty())
1317 t <<
" ambiguityscope=\"" <<
convertToXML(mi->ambiguityResolutionScope()) <<
"\"";
1324 t <<
" </listofallmembers>\n";
1329 for (
const auto &cd : cl)
1331 if (!cd->isHidden() && !cd->isAnonymous())
1334 <<
"\" prot=\"" << to_string_lower(cd->protection());
1335 t <<
"\">" <<
convertToXML(cd->name()) <<
"</innerclass>\n";
1342 for (
const auto &cd : cl)
1344 if (!cd->isHidden())
1346 t <<
" <innerconcept refid=\"" << cd->getOutputFileBase()
1347 <<
"\">" <<
convertToXML(cd->name()) <<
"</innerconcept>\n";
1354 for (
const auto &mod : ml)
1356 if (!mod->isHidden())
1358 t <<
" <innermodule refid=\"" << mod->getOutputFileBase()
1359 <<
"\">" <<
convertToXML(mod->name()) <<
"</innermodule>\n";
1366 for (
const auto &nd : nl)
1368 if (!nd->isHidden() && !nd->isAnonymous())
1370 t <<
" <innernamespace refid=\"" << nd->getOutputFileBase()
1371 <<
"\"" << (nd->isInline() ?
" inline=\"yes\"" :
"")
1372 <<
">" <<
convertToXML(nd->name()) <<
"</innernamespace>\n";
1379 if (exportMap.empty())
return;
1380 t <<
" <exports>\n";
1381 for (
const auto &[moduleName,importInfoList] : exportMap)
1383 for (
const auto &importInfo : importInfoList)
1392 t << importInfo.importName;
1396 t <<
" </exports>\n";
1401 for (
const auto &fd : fl)
1403 t <<
" <innerfile refid=\"" << fd->getOutputFileBase()
1404 <<
"\">" <<
convertToXML(fd->name()) <<
"</innerfile>\n";
1410 for (
const auto &pd : pl)
1412 t <<
" <innerpage refid=\"" << pd->getOutputFileBase();
1413 if (pd->getGroupDef())
1415 t <<
"_" << pd->name();
1417 t <<
"\">" <<
convertToXML(pd->title()) <<
"</innerpage>\n";
1423 for (
const auto &sgd : gl)
1425 t <<
" <innergroup refid=\"" << sgd->getOutputFileBase()
1427 <<
"</innergroup>\n";
1435 for(
const auto &subdir : *dl)
1437 t <<
" <innerdir refid=\"" << subdir->getOutputFileBase()
1438 <<
"\">" <<
convertToXML(subdir->displayName()) <<
"</innerdir>\n";
1458 t <<
"</includes>\n";
1487 msg(
"Generating XML output for class {}\n",cd->
name());
1498 err(
"Cannot open file {} for writing!\n",fileName);
1504 t <<
" <compounddef id=\""
1509 if (cd->
isFinal()) t <<
"\" final=\"yes";
1510 if (cd->
isSealed()) t <<
"\" sealed=\"yes";
1511 if (cd->
isAbstract()) t <<
"\" abstract=\"yes";
1513 t <<
" <compoundname>";
1516 t <<
"</compoundname>\n";
1519 t <<
" <basecompoundref ";
1520 if (bcd.classDef->isLinkable())
1524 if (bcd.prot == Protection::Package)
ASSERT(0);
1526 t << to_string_lower(bcd.prot);
1528 t << to_string_lower(bcd.virt);
1530 if (!bcd.templSpecifiers.empty())
1534 bcd.classDef->name(),bcd.templSpecifiers)
1541 t <<
"</basecompoundref>\n";
1545 if (bcd.prot == Protection::Package)
ASSERT(0);
1546 t <<
" <derivedcompoundref refid=\""
1549 t << to_string_lower(bcd.prot);
1551 t << to_string_lower(bcd.virt);
1552 t <<
"\">" <<
convertToXML(bcd.classDef->displayName())
1553 <<
"</derivedcompoundref>\n";
1564 mg->documentation());
1580 t <<
" <requiresclause>";
1582 t <<
" </requiresclause>\n";
1587 t <<
" <qualifier>" <<
convertToXML(qcd) <<
"</qualifier>\n";
1590 t <<
" <briefdescription>\n";
1592 t <<
" </briefdescription>\n";
1593 t <<
" <detaileddescription>\n";
1595 t <<
" </detaileddescription>\n";
1599 t <<
" <inheritancegraph>\n";
1601 t <<
" </inheritancegraph>\n";
1606 t <<
" <collaborationgraph>\n";
1608 t <<
" </collaborationgraph>\n";
1611 t <<
" <location file=\""
1627 t <<
" </compounddef>\n";
1628 t <<
"</doxygen>\n";
1630 ti <<
" </compound>\n";
1638 <<
"\" kind=\"concept\"" <<
"><name>"
1648 err(
"Cannot open file {} for writing!\n",fileName);
1654 <<
"\" kind=\"concept\">\n";
1655 t <<
" <compoundname>";
1658 t <<
"</compoundname>\n";
1661 t <<
" <initializer>";
1663 t <<
"</initializer>\n";
1665 intf->resetCodeParserState();
1668 t <<
" <conceptparts>\n";
1674 t <<
" <docpart line=\"" << part.lineNr <<
"\" col=\"" << part.colNr <<
"\">\n";
1676 t <<
" </docpart>\n";
1679 t <<
" <codepart line=\"" << part.lineNr <<
"\">";
1681 intf->parseCode(xmlList,
1689 t <<
"</codepart>\n";
1693 t <<
" </conceptparts>\n";
1694 t <<
" <briefdescription>\n";
1696 t <<
" </briefdescription>\n";
1697 t <<
" <detaileddescription>\n";
1699 t <<
" </detaileddescription>\n";
1701 t <<
" <location file=\""
1705 t <<
" </compounddef>\n";
1706 t <<
"</doxygen>\n";
1708 ti <<
" </compound>\n";
1715 <<
"\" kind=\"module\"" <<
"><name>"
1723 err(
"Cannot open file {} for writing!\n",fileName);
1729 <<
"\" kind=\"module\">\n";
1730 t <<
" <compoundname>";
1732 t <<
"</compoundname>\n";
1746 mg->documentation());
1748 t <<
" <briefdescription>\n";
1750 t <<
" </briefdescription>\n";
1751 t <<
" <detaileddescription>\n";
1753 t <<
" </detaileddescription>\n";
1756 t <<
" <location file=\""
1760 t <<
" </compounddef>\n";
1761 t <<
"</doxygen>\n";
1763 ti <<
" </compound>\n";
1781 <<
"\" kind=\"namespace\"" <<
"><name>"
1789 err(
"Cannot open file {} for writing!\n",fileName);
1796 <<
"\" kind=\"namespace\" "
1797 << (nd->
isInline()?
"inline=\"yes\" ":
"")
1800 t <<
" <compoundname>";
1803 t <<
"</compoundname>\n";
1812 mg->documentation());
1823 t <<
" <briefdescription>\n";
1825 t <<
" </briefdescription>\n";
1826 t <<
" <detaileddescription>\n";
1828 t <<
" </detaileddescription>\n";
1830 t <<
" <location file=\""
1834 t <<
" </compounddef>\n";
1835 t <<
"</doxygen>\n";
1837 ti <<
" </compound>\n";
1867 err(
"Cannot open file {} for writing!\n",fileName);
1874 <<
"\" kind=\"file\" language=\""
1876 t <<
" <compoundname>";
1878 t <<
"</compoundname>\n";
1883 if (inc.fileDef && !inc.fileDef->isReference())
1885 t <<
" refid=\"" << inc.fileDef->getOutputFileBase() <<
"\"";
1889 t <<
"</includes>\n";
1894 t <<
" <includedby";
1895 if (inc.fileDef && !inc.fileDef->isReference())
1897 t <<
" refid=\"" << inc.fileDef->getOutputFileBase() <<
"\"";
1901 t <<
"</includedby>\n";
1907 t <<
" <incdepgraph>\n";
1909 t <<
" </incdepgraph>\n";
1915 t <<
" <invincdepgraph>\n";
1917 t <<
" </invincdepgraph>\n";
1927 mg->documentation());
1938 t <<
" <briefdescription>\n";
1940 t <<
" </briefdescription>\n";
1941 t <<
" <detaileddescription>\n";
1943 t <<
" </detaileddescription>\n";
1950 t <<
" </compounddef>\n";
1951 t <<
"</doxygen>\n";
1953 ti <<
" </compound>\n";
1980 err(
"Cannot open file {} for writing!\n",fileName);
1986 t <<
" <compounddef id=\""
2002 mg->documentation());
2013 t <<
" <briefdescription>\n";
2015 t <<
" </briefdescription>\n";
2016 t <<
" <detaileddescription>\n";
2018 t <<
" </detaileddescription>\n";
2020 t <<
" </compounddef>\n";
2021 t <<
"</doxygen>\n";
2023 ti <<
" </compound>\n";
2038 err(
"Cannot open file {} for writing!\n",fileName);
2044 t <<
" <compounddef id=\""
2051 t <<
" <briefdescription>\n";
2053 t <<
" </briefdescription>\n";
2054 t <<
" <detaileddescription>\n";
2056 t <<
" </detaileddescription>\n";
2059 t <<
" </compounddef>\n";
2060 t <<
"</doxygen>\n";
2062 ti <<
" </compound>\n";
2067 ti <<
" <compound refid=\"requirements\" kind=\"requirements\"><name>" <<
convertToXML(pd->
name()) <<
"</name>\n";
2069 DString fileName = outputDirectory+
"/requirements.xml";
2073 err(
"Cannot open file {} for writing!\n",fileName);
2078 auto writeDefsForReq = [&t](
const std::vector<const Definition *> &defs,
const char *tagName)
2080 for (
const auto &def : defs)
2082 t <<
" <" << tagName <<
" refid=\"";
2083 t << def->getOutputFileBase();
2086 t <<
"_1" << def->anchor();
2090 t <<
"</" << tagName<<
">\n";
2095 t <<
" <compounddef id=\"requirements\" kind=\"requirements\">\n";
2097 t <<
" <requirementslist>\n";
2099 for (
const auto &req : reqs)
2101 t <<
" <requirement refid=\"" << req->id();
2102 if (
auto tagFile = req->getTagFile(); !tagFile.empty())
2109 writeDefsForReq(req->satisfiedBy(),
"satisfiedby");
2110 writeDefsForReq(req->verifiedBy(),
"verifiedby");
2111 t <<
" </requirement>\n";
2113 t <<
" </requirementslist>\n";
2114 t <<
" </compounddef>\n";
2115 t <<
"</doxygen>\n";
2117 ti <<
" </compound>\n";
2127 const char *kindName = isExample ?
"example" :
"page";
2136 if (pageName==
"index")
2138 pageName=
"indexpage";
2140 else if (pageName==
"requirements")
2146 ti <<
" <compound refid=\"" << pageName
2151 DString fileName=outputDirectory+
"/"+pageName+
".xml";
2155 err(
"Cannot open file {} for writing!\n",fileName);
2161 t <<
" <compounddef id=\"" << pageName;
2162 t <<
"\" kind=\"" << kindName <<
"\">\n";
2164 <<
"</compoundname>\n";
2195 auto writeIndent = [&]() {
for (
int i=0;i<4+indent*2;i++) t <<
" "; };
2196 auto incIndent = [&](
const char *text) { writeIndent(); t << text <<
"\n"; indent++; };
2197 auto decIndent = [&](
const char *text) { indent--; writeIndent(); t << text <<
"\n"; };
2198 incIndent(
"<tableofcontents>");
2203 if (si->type().isSection())
2206 int nextLevel = si->type().level();
2207 if (nextLevel>level)
2209 for (
int l=level;l<nextLevel;l++)
2211 if (l < maxLevel) incIndent(
"<tableofcontents>");
2214 else if (nextLevel<level)
2216 for (
int l=level;l>nextLevel;l--)
2218 if (l <= maxLevel && inLi[l]) decIndent(
"</tocsect>");
2220 if (l <= maxLevel) decIndent(
"</tableofcontents>");
2223 if (nextLevel <= maxLevel)
2225 if (inLi[nextLevel])
2227 decIndent(
"</tocsect>");
2229 else if (level>nextLevel)
2231 decIndent(
"</tableofcontents>");
2232 incIndent(
"<tableofcontents>");
2236 if (titleDoc.
empty()) titleDoc = label;
2237 incIndent(
"<tocsect>");
2238 writeIndent(); t <<
"<name>" << titleDoc <<
"</name>\n";
2239 writeIndent(); t <<
"<docs>";
2240 if (!si->title().empty())
2245 writeIndent(); t <<
"<reference>" <<
convertToXML(pageName) <<
"_1" << label <<
"</reference>\n";
2246 inLi[nextLevel]=
true;
2251 while (level>1 && level <= maxLevel)
2253 if (inLi[level]) decIndent(
"</tocsect>");
2255 decIndent(
"</tableofcontents>");
2258 if (level <= maxLevel && inLi[level]) decIndent(
"</tocsect>");
2260 decIndent(
"</tableofcontents>");
2262 t <<
" <briefdescription>\n";
2264 t <<
" </briefdescription>\n";
2265 t <<
" <detaileddescription>\n";
2276 t <<
" </detaileddescription>\n";
2281 t <<
" </compounddef>\n";
2282 t <<
"</doxygen>\n";
2284 ti <<
" </compound>\n";
2290 ti <<
" <compound refid=\"" << pageName <<
"\" kind=\"requirement\"><name>" <<
convertToXML(req->
id()) <<
"</name>\n";
2293 DString fileName = outputDirectory+
"/"+pageName+
".xml";
2297 err(
"Cannot open file {} for writing!\n",fileName);
2302 t <<
" <compounddef id=\"" << pageName <<
"\" kind=\"requirement\">\n";
2303 t <<
" <compoundname>" <<
convertToXML(req->
id()) <<
"</compoundname>\n";
2305 t <<
" <detaileddescription>\n";
2307 t <<
" </detaileddescription>\n";
2309 t <<
" </compounddef>\n";
2310 t <<
"</doxygen>\n";
2312 ti <<
" </compound>\n";
2327 Dir xmlDir(outputDirectory.
str());
2333 DString fileName=outputDirectory+
"/compound.xsd";
2337 err(
"Cannot open file {} for writing!\n",fileName);
2345 const char *startLine = compound_xsd.
data();
2349 const char *endLine = startLine+1;
2350 while (*endLine && *(endLine-1)!=
'\n') endLine++;
2351 int len=
static_cast<int>(endLine-startLine);
2355 if (s.
find(
"<!-- Automatically insert here the HTML entities -->")!=
DString::npos)
2361 t.
write(startLine,len);
2369 fileName=outputDirectory+
"/doxyfile.xsd";
2373 err(
"Cannot open file {} for writing!\n",fileName);
2381 const char *startLine = doxyfile_xsd.
data();
2385 const char *endLine = startLine+1;
2386 while (*endLine && *(endLine-1)!=
'\n') endLine++;
2387 int len=
static_cast<int>(endLine-startLine);
2391 if (s.
find(
"<!-- Automatically insert here the configuration settings -->")!=
DString::npos)
2397 t.
write(startLine,len);
2405 fileName=outputDirectory+
"/Doxyfile.xml";
2409 err(
"Cannot open file {} for writing\n",fileName);
2419 fileName=outputDirectory+
"/index.xml";
2423 err(
"Cannot open file {} for writing!\n",fileName);
2431 t <<
"<?xml version='1.0' encoding='UTF-8' standalone='no'?>\n";
2432 t <<
"<doxygenindex xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" ";
2433 t <<
"xsi:noNamespaceSchemaLocation=\"index.xsd\" ";
2434 t <<
"version=\"" << getDoxygenVersion() <<
"\" ";
2444 msg(
"Generating XML output for concept {}\n",cd->displayName());
2449 msg(
"Generating XML output for namespace {}\n",nd->displayName());
2454 for (
const auto &fd : *fn)
2456 msg(
"Generating XML output for file {}\n",fd->name());
2462 msg(
"Generating XML output for group {}\n",gd->name());
2467 msg(
"Generating XML output for page {}\n",pd->name());
2472 if (req->getTagFile().empty())
2474 msg(
"Generating XML output for requirement {}\n", req->id());
2480 msg(
"Generate XML output for dir {}\n",dd->name());
2485 msg(
"Generating XML output for module {}\n",mod->name());
2490 msg(
"Generating XML output for example {}\n",pd->name());
2495 msg(
"Generating XML output for the main page\n");
2500 t <<
"</doxygenindex>\n";
This class contains the information about the argument of a function or template.
bool hasDocumentation(bool allowEmptyName=false) const
This class represents an function or template argument list.
RefQualifierType refQualifier() const
bool hasParameters() const
bool constSpecifier() const
bool volatileSpecifier() const
A abstract class representing of a compound symbol.
virtual DString requiresClause() const =0
virtual bool isAbstract() const =0
Returns true if there is at least one pure virtual member in this class.
virtual bool isFinal() const =0
Returns true if this class is marked as final.
virtual const ArgumentList & templateArguments() const =0
Returns the template arguments of this class.
virtual const MemberLists & getMemberLists() const =0
Returns the list containing the list of members sorted per type.
virtual const BaseClassList & baseClasses() const =0
Returns the list of base classes from which this class directly inherits.
virtual bool isSealed() const =0
Returns true if this class is marked as sealed.
virtual StringVector getQualifiers() const =0
virtual Protection protection() const =0
Return the protection level (Public,Protected,Private) in which this compound was found.
virtual DString compoundTypeString() const =0
Returns the type of compound as a string.
virtual const MemberNameInfoLinkedMap & memberNameInfoLinkedMap() const =0
Returns a dictionary of all members.
virtual bool isImplicitTemplateInstance() const =0
virtual const MemberGroupList & getMemberGroups() const =0
Returns the member groups defined for this class.
virtual ClassLinkedRefMap getClasses() const =0
returns the classes nested into this class
virtual FileDef * getFileDef() const =0
Returns the file in which this compound's definition can be found.
virtual const IncludeInfo * includeInfo() const =0
virtual const BaseClassList & subClasses() const =0
Returns the list of sub classes that directly derive from this class.
virtual DString initializer() const =0
virtual ArgumentList getTemplateParameterList() const =0
virtual const IncludeInfo * includeInfo() const =0
virtual Parts conceptParts() const =0
virtual const FileDef * getFileDef() const =0
A String class for use with Doxygen wrapping std::string and adding some additional functionality off...
size_t rfind(char c, size_t pos=npos) const
DString fill(char c, size_t len)
Fills a string with a predefined character.
DString mid(size_t index, size_t len=npos) const
bool empty() const
Returns true iff the string is empty (std::string compatible alias for isEmpty()).
DString & remove(size_t index, size_t len)
static constexpr size_t npos
value used to indicate 'not found' or 'to the end of the string', matching std::string::npos
char & at(size_t i)
Returns a reference to the character at index i.
size_t size() const
Returns the length of the string, not counting the 0-terminator.
DString & prepend(const char *s)
size_t find(char c, size_t pos=0) const
DString stripWhiteSpace() const
returns a copy of this string with leading and trailing whitespace removed
DString left(size_t len) const
const std::string & str() const
bool stripPrefix(const DString &prefix)
const char * data() const
Returns a pointer to the contents of the string in the form of a 0-terminated C string.
size_t length() const
Returns the length of the string, not counting the 0-terminator.
The common base class of all entity definitions found in the sources.
virtual DString briefDescription(bool abbreviate=false) const =0
virtual int getEndBodyLine() const =0
virtual DString briefFile() const =0
virtual SrcLangExt getLanguage() const =0
Returns the programming language this definition was written in.
virtual DString getDefFileExtension() const =0
virtual int docLine() const =0
virtual DString getDefFileName() const =0
virtual DString documentation() const =0
virtual DString inbodyDocumentation() const =0
virtual int getDefLine() const =0
virtual DefType definitionType() const =0
virtual const SectionRefs & getSectionRefs() const =0
returns the section dictionary, only of importance for pagedef
virtual const DString & name() const =0
virtual int inbodyLine() const =0
virtual const FileDef * getBodyDef() const =0
virtual int briefLine() const =0
virtual bool isLinkableInProject() const =0
virtual size_t getDefColumn() const =0
virtual bool isAnonymous() const =0
virtual const RequirementRefs & requirementReferences() const =0
virtual DString displayName(bool includeScope=true) const =0
virtual DString qualifiedName() const =0
virtual bool isHidden() const =0
virtual DString anchor() const =0
virtual bool isArtificial() const =0
virtual Definition * getOuterScope() const =0
virtual DString docFile() const =0
virtual const MemberVector & getReferencedByMembers() const =0
virtual int getStartBodyLine() const =0
virtual bool isReference() const =0
virtual const MemberVector & getReferencesMembers() const =0
virtual DString getOutputFileBase() const =0
A model of a directory symbol.
virtual const DirList & subDirs() const =0
virtual const FileList & getFiles() const =0
Class representing a directory in the file system.
Class representing the abstract syntax tree of a documentation block.
Representation of a class inheritance or dependency graph.
void writeXML(TextStream &t)
Representation of an include dependency graph.
void writeXML(TextStream &t)
static NamespaceLinkedMap * namespaceLinkedMap
static ConceptLinkedMap * conceptLinkedMap
static std::unique_ptr< PageDef > mainPage
static FileNameLinkedMap * inputNameLinkedMap
static ParserManager * parserManager
static ClassLinkedMap * classLinkedMap
static PageLinkedMap * exampleLinkedMap
static PageLinkedMap * pageLinkedMap
static DirLinkedMap * dirLinkedMap
static GroupLinkedMap * groupLinkedMap
A model of a file symbol.
virtual const NamespaceLinkedRefMap & getNamespaces() const =0
virtual const MemberGroupList & getMemberGroups() const =0
virtual DString absFilePath() const =0
virtual const DString & docName() const =0
virtual const ClassLinkedRefMap & getClasses() const =0
virtual const IncludeInfoList & includeFileList() const =0
virtual const MemberLists & getMemberLists() const =0
virtual const ConceptLinkedRefMap & getConcepts() const =0
virtual const IncludeInfoList & includedByFileList() const =0
A model of a group of symbols.
virtual DString groupTitle() const =0
virtual const GroupList & getSubGroups() const =0
virtual const FileList & getFiles() const =0
virtual const MemberLists & getMemberLists() const =0
virtual const MemberGroupList & getMemberGroups() const =0
virtual const ConceptLinkedRefMap & getConcepts() const =0
virtual const PageLinkedRefMap & getPages() const =0
virtual const NamespaceLinkedRefMap & getNamespaces() const =0
virtual const ClassLinkedRefMap & getClasses() const =0
virtual const ModuleLinkedRefMap & getModules() const =0
void writeXMLSchema(TextStream &t)
static HtmlEntityMapper & instance()
Returns the one and only instance of the HTML entity mapper.
Class representing the data associated with a #include statement.
const T * find(const std::string &key) const
constexpr bool isXmlEnabled() const noexcept
constexpr int xmlLevel() const noexcept
A model of a class/file/namespace member symbol.
virtual bool isConstExpr() const =0
virtual bool isConstEval() const =0
virtual bool isInitonly() const =0
virtual bool isNoExcept() const =0
virtual bool isAssign() const =0
virtual bool isExplicit() const =0
virtual bool isNew() const =0
virtual DString requiresClause() const =0
virtual bool isMaybeVoid() const =0
virtual DString argsString() const =0
virtual bool isSealed() const =0
virtual bool isConstInit() const =0
virtual DString definition() const =0
virtual const ClassDef * getClassDef() const =0
virtual DString excpString() const =0
virtual const ArgumentList & templateArguments() const =0
virtual DString getDeclFileName() const =0
virtual const DString & initializer() const =0
virtual GroupDef * getGroupDef()=0
virtual bool isSettable() const =0
virtual bool isRetain() const =0
virtual bool isAddable() const =0
virtual const MemberVector & enumFieldList() const =0
virtual const FileDef * getFileDef() const =0
virtual bool isInline() const =0
virtual DString getReadAccessor() const =0
virtual const ArgumentList & argumentList() const =0
virtual bool isWritable() const =0
virtual bool isMaybeAmbiguous() const =0
virtual bool isPrivateGettable() const =0
virtual const MemberVector & reimplementedBy() const =0
virtual bool isRequired() const =0
virtual bool isAttribute() const =0
virtual bool isExternal() const =0
virtual bool isCopy() const =0
virtual DString bitfieldString() const =0
virtual int getDeclLine() const =0
virtual bool isTypeAlias() const =0
virtual bool isStatic() const =0
virtual const MemberDef * reimplements() const =0
virtual bool isMaybeDefault() const =0
virtual bool isPrivateSettable() const =0
virtual StringVector getQualifiers() const =0
virtual bool isRaisable() const =0
virtual bool isRemovable() const =0
virtual bool isConstrained() const =0
virtual DString getWriteAccessor() const =0
virtual bool isReadonly() const =0
virtual bool isBound() const =0
virtual bool isThreadLocal() const =0
virtual const NamespaceDef * getNamespaceDef() const =0
virtual DString getScopeString() const =0
virtual size_t getDeclColumn() const =0
virtual bool isProtectedSettable() const =0
virtual bool isProtectedGettable() const =0
virtual bool hasOneLineInitializer() const =0
virtual bool isTransient() const =0
virtual bool hasMultiLineInitializer() const =0
virtual Protection protection() const =0
virtual bool isOptional() const =0
virtual bool isGettable() const =0
virtual MemberType memberType() const =0
virtual bool isReadable() const =0
virtual bool isWeak() const =0
virtual bool isNoDiscard() const =0
virtual DString enumBaseType() const =0
virtual bool isStrong() const =0
virtual DString typeString() const =0
virtual Specifier virtualness(int count=0) const =0
virtual bool isUNOProperty() const =0
virtual bool isFinal() const =0
virtual const ArgumentList & declArgumentList() const =0
virtual bool isMutable() const =0
virtual bool isFriendClass() const =0
A list of MemberDef objects as shown in documentation sections.
MemberListType listType() const
constexpr const char * toXML() const noexcept
constexpr bool isDeclaration() const noexcept
constexpr bool isDetailed() const noexcept
virtual const MemberGroupList & getMemberGroups() const =0
virtual bool isPrimaryInterface() const =0
virtual const MemberLists & getMemberLists() const =0
virtual FileList getUsedFiles() const =0
virtual const ImportInfoMap & getExports() const =0
virtual const ConceptLinkedRefMap & getConcepts() const =0
virtual const ClassLinkedRefMap & getClasses() const =0
static ModuleManager & instance()
ModuleDef * getPrimaryInterface(const DString &moduleName) const
An abstract interface of a namespace symbol.
virtual ConceptLinkedRefMap getConcepts() const =0
virtual const MemberLists & getMemberLists() const =0
virtual NamespaceLinkedRefMap getNamespaces() const =0
virtual bool isInline() const =0
virtual ClassLinkedRefMap getClasses() const =0
virtual const MemberGroupList & getMemberGroups() const =0
Class representing a list of different code generators.
void startCodeFragment(const DString &style)
void add(OutputCodeIntfPtr &&p)
void endCodeFragment(const DString &style)
A model of a page symbol.
virtual const PageLinkedRefMap & getSubPages() const =0
virtual LocalToc localToc() const =0
virtual DString title() const =0
virtual const GroupDef * getGroupDef() const =0
std::unique_ptr< CodeParserInterface > getCodeParser(const DString &extension)
Gets the interface to the parser associated with a given extension.
virtual DString file() const =0
virtual int line() const =0
virtual DString title() const =0
virtual DString id() const =0
virtual DString doc() const =0
static RequirementManager & instance()
const PageDef * requirementsPage() const
RequirementIntfList requirements() const
static ResourceMgr & instance()
Returns the one and only instance of this class.
bool copyResource(const DString &name, const DString &targetDir) const
Copies a registered resource to a given target directory.
DString getAsString(const DString &name) const
Gets the resource data as a C string.
class that provide information about a section.
static SectionManager & instance()
returns a reference to the singleton
class that represents a list of constant references to sections.
Abstract interface for a hyperlinked text fragment.
TextGeneratorXMLImpl(TextStream &t)
void writeString(std::string_view s, bool) const override
void writeLink(const DString &extRef, const DString &file, const DString &anchor, std::string_view text) const override
void writeBreak(int) const override
Text streaming class that buffers data.
void write(const char *buf, size_t len)
Adds a array of character to the stream.
virtual DString trISOLang()=0
void setStripIndentAmount(size_t amount) override
void endCodeLine() override
size_t m_stripIndentAmount
void startCodeLine(int) override
void startSpecialComment() override
bool m_normalHLNeedStartTag
void startFontClass(const DString &colorClass) override
void writeCodeLink(CodeSymbolType type, const DString &ref, const DString &file, const DString &anchor, const DString &name, const DString &tooltip) override
void endSpecialComment() override
void writeTooltip(const DString &, const DocLinkInfo &, const DString &, const DString &, const SourceLinkInfo &, const SourceLinkInfo &) override
void stripCodeComments(bool b) override
void endCodeFragment(const DString &) override
void startCodeFragment(const DString &) override
void writeLineNumber(const DString &extRef, const DString &compId, const DString &anchorId, int l, bool writeLineAnchor) override
void codify(const DString &text) override
Generator for producing XML formatted source code.
XMLCodeGenerator(TextStream *t)
void writeCodeAnchor(const DString &) override
void endFontClass() override
Concrete visitor implementation for XML output.
#define Config_getInt(name)
#define Config_getBool(name)
#define Config_getString(name)
std::vector< bool > BoolVector
DirIterator end(const DirIterator &) noexcept
IDocParserPtr createDocParser()
factory function to create a parser
IDocNodeASTPtr validatingParseDoc(IDocParser &parserIntf, const DString &fileName, int startLine, const Definition *ctx, const MemberDef *md, const DString &input, const DocOptions &options)
const char * qPrint(const char *s)
constexpr uint32_t IncludeKind_LocalMask
Translator * theTranslator
void linkifyText(const TextGeneratorIntf &out, const DString &text, const LinkifyTextOptions &options)
std::unordered_map< std::string, ImportInfoList > ImportInfoMap
void writeXMLDoxyfile(TextStream &t)
void writeXSDDoxyfile(TextStream &t)
std::ofstream openOutputStream(const DString &name, bool append=false)
size_t updateColumnCount(const char *s, size_t col)
Portable versions of functions that are platform dependent.
void splitRequirementRefs(const RequirementRefs &inputReqRefs, RequirementRefs &satisfiesRefs, RequirementRefs &verifiesRefs)
std::vector< RequirementRef > RequirementRefs
List of requirement references.
Options to configure the code parser.
Helper class to pass options when calling OutputList::generateDoc().
LinkifyTextOptions & setScope(const Definition *scope)
LinkifyTextOptions & setSelf(const Definition *self)
LinkifyTextOptions & setFileScope(const FileDef *fileScope)
static constexpr const char * to_string(Protection prot) noexcept
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.
Various UTF8 related helper functions.
DString filterTitle(const DString &title)
DString insertTemplateSpecifierInScope(const DString &scope, const DString &templ)
DString convertNameToFile(const DString &name, bool allowDots, bool allowUnderscore)
void clearSubDirs(const Dir &d)
void createSubDirs(const Dir &d)
SrcLangExt getLanguageFromFileName(const DString &fileName, SrcLangExt defLang)
DString fileToString(const DString &name, bool filter, bool isSourceCode)
DString convertToXML(const DString &s, bool keepEntities, const bool citeEntry)
DString getLanguageSpecificSeparator(SrcLangExt lang, bool classScope)
DString stripFromPath(const DString &path)
A bunch of utility functions.
static void generateXMLForGroup(const GroupDef *gd, TextStream &ti)
static void writeInnerConcepts(const ConceptLinkedRefMap &cl, TextStream &t)
void writeXMLCodeString(bool hide, TextStream &t, const DString &str, size_t &col, size_t stripIndentAmount)
static void writeInnerGroups(const GroupList &gl, TextStream &t)
static void stripQualifiers(DString &typeStr)
static void writeInnerDirs(const DirList *dl, TextStream &t)
static DString memberOutputFileBase(const MemberDef *md)
static void writeListOfAllMembers(const ClassDef *cd, TextStream &t)
static void writeXMLDocBlock(TextStream &t, const DString &fileName, int lineNr, const Definition *scope, const MemberDef *md, const DString &text)
static void generateXMLForClass(const ClassDef *cd, TextStream &ti)
static void generateXMLForFile(FileDef *fd, TextStream &ti)
static void generateXMLSection(const Definition *d, TextStream &ti, TextStream &t, const MemberList *ml, const DString &kind, const DString &header=DString(), const DString &documentation=DString())
static void writeMemberTemplateLists(const MemberDef *md, TextStream &t)
void writeXMLCodeBlock(TextStream &t, FileDef *fd)
static void writeTemplateList(const ClassDef *cd, TextStream &t)
void writeXMLString(TextStream &t, const DString &s)
static void writeMemberReference(TextStream &t, const Definition *def, const MemberDef *rmd, const DString &tagName)
void generateXMLForRequirements(PageDef *pd, TextStream &ti)
static bool memberVisible(const Definition *d, const MemberDef *md)
static void writeIncludeInfo(const IncludeInfo *ii, TextStream &t)
static void writeInnerPages(const PageLinkedRefMap &pl, TextStream &t)
DString xmlRequirementId(const DString &reqId)
static void generateXMLForNamespace(const NamespaceDef *nd, TextStream &ti)
static void generateXMLForRequirement(const RequirementIntf *req, TextStream &ti)
void writeXMLLink(TextStream &t, const DString &extRef, const DString &compoundId, const DString &anchorId, const DString &text, const DString &tooltip)
static void writeXMLHeader(TextStream &t)
static void writeInnerModules(const ModuleLinkedRefMap &ml, TextStream &t)
static void generateXMLForModule(const ModuleDef *mod, TextStream &ti)
static void generateXMLForConcept(const ConceptDef *cd, TextStream &ti)
static void writeExports(const ImportInfoMap &exportMap, TextStream &t)
static void writeInnerFiles(const FileList &fl, TextStream &t)
static bool stripKeyword(DString &str, const char *keyword, bool needSpace)
static void generateXMLForMember(const MemberDef *md, TextStream &ti, TextStream &t, const Definition *def)
static DString classOutputFileBase(const ClassDef *cd)
static void writeRequirementRefs(const Definition *d, TextStream &t, const char *prefix="")
static void writeTemplateArgumentList(TextStream &t, const ArgumentList &al, const Definition *scope, const FileDef *fileScope, int indent)
static void writeInnerClasses(const ClassLinkedRefMap &cl, TextStream &t)
static DString extractNoExcept(DString &argsStr)
static void writeInnerNamespaces(const NamespaceLinkedRefMap &nl, TextStream &t)
static void generateXMLForDir(DirDef *dd, TextStream &ti)
static void generateXMLForPage(PageDef *pd, TextStream &ti, bool isExample)
static void writeCombineScript()