The Crawlmap
Class Reference
Declaration
class Crawlmap { ... }
Base class
Public Constructors Index
Public Destructor Index
Public Member Functions Index
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, const QCString &nameAsHtml) |
|
|
|
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) |
|
|
|
Private Member Attributes Index
Public Static Attributes Index
Definition at line 54 of file sitemap.h.
Public Constructors
Crawlmap()
Public Destructor
~Crawlmap()
Public Member Functions
addContentsItem()
addImageFile()
void Crawlmap::addImageFile (const QCString & name) |
|
inline
virtual
|
addIndexFile()
void Crawlmap::addIndexFile (const QCString & name) |
|
virtual
|
addIndexItem()
addStyleSheetFile()
void Crawlmap::addStyleSheetFile (const QCString & name) |
|
inline
virtual
|
decContentsDepth()
void Crawlmap::decContentsDepth () |
|
inline
virtual
|
finalize()
void Crawlmap::finalize () |
|
virtual
|
Declaration at line 62 of file sitemap.h, 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}
Reference p.
incContentsDepth()
void Crawlmap::incContentsDepth () |
|
inline
virtual
|
initialize()
void Crawlmap::initialize () |
|
virtual
|
Declaration at line 61 of file sitemap.h, definition at line 95 of file sitemap.cpp.
96{
100 if (!p->crawlFile.is_open())
101 {
102 term("Could not open file {} for writing\n",fileName);
103 }
104 p->crawl.setStream(&p->crawlFile);
105 p->crawl << "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1 Transitional//EN\" \"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n";
106 p->crawl << "<html xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"" + theTranslator->trISOLang() + "\">\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}
References addHtmlExtensionIfMissing, Config_getString, crawlFileName, Portable::openOutputStream, p, term and theTranslator.
Private Member Attributes
std::unique_ptr<Private> Crawlmap::p |
|
Public Static Attributes
crawlFileName
const QCString Crawlmap::crawlFileName = "doxygen_crawl" |
|
static
|
The documentation for this class was generated from the following files:
Generated via doxygen2docusaurus by Doxygen 1.14.0.