The Sitemap
Class Reference
Declaration
class Sitemap { ... }
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 26 of file sitemap.h.
Public Constructors
Sitemap()
Public Destructor
~Sitemap()
Public Member Functions
addContentsItem()
Definition at line 37 of file sitemap.h.
39 bool separateIndex, bool addToNavIndex,
addImageFile()
void Sitemap::addImageFile (const QCString & name) |
|
inline
virtual
|
addIndexFile()
void Sitemap::addIndexFile (const QCString & name) |
|
virtual
|
addIndexItem()
addStyleSheetFile()
void Sitemap::addStyleSheetFile (const QCString & name) |
|
inline
virtual
|
decContentsDepth()
void Sitemap::decContentsDepth () |
|
inline
virtual
|
finalize()
void Sitemap::finalize () |
|
virtual
|
Declaration at line 34 of file sitemap.h, definition at line 65 of file sitemap.cpp.
66{
67 p->doc << "</urlset>\n";
70}
Reference p.
incContentsDepth()
void Sitemap::incContentsDepth () |
|
inline
virtual
|
initialize()
void Sitemap::initialize () |
|
virtual
|
Declaration at line 33 of file sitemap.h, definition at line 46 of file sitemap.cpp.
47{
49
51 if (!p->docFile.is_open())
52 {
53 term("Could not open file {} for writing\n", fileName);
54 }
55 p->doc.setStream(&p->docFile);
56
57 p->doc << "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
58 p->doc << "<urlset\n";
59 p->doc << " xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\"\n";
60 p->doc << " xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n";
61 p->doc << " xsi:schemaLocation=\"http://www.sitemaps.org/schemas/sitemap/0.9\n";
62 p->doc << " http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd\">\n";
63}
References Config_getString, Portable::openOutputStream, p, sitemapFileName and term.
Private Member Attributes
std::unique_ptr<Private> Sitemap::p |
|
Public Static Attributes
sitemapFileName
const QCString Sitemap::sitemapFileName = "sitemap.xml" |
|
static
|
The documentation for this class was generated from the following files:
Generated via doxygen2docusaurus by Doxygen 1.14.0.