#include <src/sitemap.h>
|
| Crawlmap () |
|
| ~Crawlmap () |
|
void | initialize () |
|
void | finalize () |
|
void | incContentsDepth () |
|
void | decContentsDepth () |
|
void | addContentsItem (bool isDir, const QCString &name, const QCString &ref, const QCString &file, const QCString &anchor, bool separateIndex, bool addToNavIndex, const Definition *def) |
|
void | addIndexItem (const Definition *context, const MemberDef *md, const QCString §ionAnchor, const QCString &title) |
|
void | addIndexFile (const QCString &name) |
|
void | addImageFile (const QCString &name) |
|
void | addStyleSheetFile (const QCString &name) |
|
Definition at line 54 of file sitemap.h.
◆ Crawlmap()
Definition at line 92 of file sitemap.cpp.
92:
p(std::make_unique<Private>()) {}
std::unique_ptr< Private > p
References p.
Referenced by ~Crawlmap().
◆ ~Crawlmap()
◆ addContentsItem()
Implements IndexIntf.
Definition at line 140 of file sitemap.cpp.
144{
146
147
148 {
149 std::string link;
150 if (file[0]=='!' || file[0]=='^')
151 {
152 link+=&file[1];
153 }
154 else
155 {
156 QCString currFile = file;
158 QCString currAnc = anchor;
159 link += currFile.
data();
161 {
162 link += "#";
163 link += currAnc.
str();
164 }
165 }
166 p->crawlLinks.push_back(link);
167 }
168}
bool isEmpty() const
Returns TRUE iff the string is empty.
const std::string & str() const
const char * data() const
Returns a pointer to the contents of the string in the form of a 0-terminated C string.
void addHtmlExtensionIfMissing(QCString &fName)
References addHtmlExtensionIfMissing(), QCString::data(), QCString::isEmpty(), p, and QCString::str().
◆ addImageFile()
void Crawlmap::addImageFile |
( |
const QCString & | name | ) |
|
|
inlinevirtual |
◆ addIndexFile()
void Crawlmap::addIndexFile |
( |
const QCString & | name | ) |
|
|
virtual |
◆ addIndexItem()
◆ addStyleSheetFile()
void Crawlmap::addStyleSheetFile |
( |
const QCString & | name | ) |
|
|
inlinevirtual |
◆ decContentsDepth()
void Crawlmap::decContentsDepth |
( |
| ) |
|
|
inlinevirtual |
◆ finalize()
void Crawlmap::finalize |
( |
| ) |
|
|
virtual |
Implements IndexIntf.
Definition at line 118 of file sitemap.cpp.
119{
120 std::sort(
p->crawlLinks.begin(),
p->crawlLinks.end());
121 p->crawlLinks.erase(std::unique(
p->crawlLinks.begin(),
p->crawlLinks.end()),
p->crawlLinks.end());
122 for (
auto &s :
p->crawlLinks)
123 {
124 p->crawl <<
"<a href=\"" << s <<
"\"/>\n";
125 }
126
127 p->crawl <<
"</body>\n";
128 p->crawl <<
"</html>\n";
130 p->crawlFile.close();
131}
References p.
◆ incContentsDepth()
void Crawlmap::incContentsDepth |
( |
| ) |
|
|
inlinevirtual |
◆ initialize()
void Crawlmap::initialize |
( |
| ) |
|
|
virtual |
Implements IndexIntf.
Definition at line 95 of file sitemap.cpp.
96{
100 if (!
p->crawlFile.is_open())
101 {
102 term(
"Could not open file %s for writing\n",
qPrint(fileName));
103 }
104 p->crawl.setStream(&
p->crawlFile);
105 p->crawl <<
"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n";
107 p->crawl <<
"<head>\n";
108 p->crawl <<
"<title>Validator / crawler helper</title>\n";
109 p->crawl <<
"<meta http-equiv=\"Content-Type\" content=\"text/xhtml;charset=UTF-8\"/>\n";
110 p->crawl <<
"<meta http-equiv=\"X-UA-Compatible\" content=\"IE=11\"/>\n";
111
112 p->crawl <<
"<meta name=\"generator\" content=\"Doxygen " + getDoxygenVersion() +
"\"/>\n";
113 p->crawl <<
"<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"/>\n";
114 p->crawl <<
"</head>\n";
115 p->crawl <<
"<body>\n";
116}
static const QCString crawlFileName
virtual QCString trISOLang()=0
#define Config_getString(name)
Translator * theTranslator
std::ofstream openOutputStream(const QCString &name, bool append=false)
const char * qPrint(const char *s)
References addHtmlExtensionIfMissing(), Config_getString, crawlFileName, Portable::openOutputStream(), p, qPrint(), term, theTranslator, and Translator::trISOLang().
◆ crawlFileName
const QCString Crawlmap::crawlFileName = "doxygen_crawl" |
|
inlinestatic |
std::unique_ptr<Private> Crawlmap::p |
|
private |
The documentation for this class was generated from the following files: