Doxygen
|
Writes search index that should be used with an externally provided search engine, e.g. More...
#include <src/searchindex.h>
Classes | |
struct | SearchDocEntry |
Public Member Functions | |
SearchIndexExternal () | |
void | setCurrentDoc (const Definition *ctx, const QCString &anchor, bool isSourceFile) |
void | addWord (const QCString &word, bool hiPriority) |
void | write (const QCString &file) |
Private Attributes | |
std::map< std::string, SearchDocEntry > | m_docEntries |
SearchDocEntry * | m_current = nullptr |
Writes search index that should be used with an externally provided search engine, e.g.
doxyindexer and doxysearch.cgi.
Definition at line 113 of file searchindex.h.
SearchIndexExternal::SearchIndexExternal | ( | ) |
Definition at line 387 of file searchindex.cpp.
void SearchIndexExternal::addWord | ( | const QCString & | word, |
bool | hiPriority ) |
Definition at line 493 of file searchindex.cpp.
References GrowBuf::addChar(), GrowBuf::addStr(), g_searchIndexMutex, GrowBuf::getPos(), isId(), m_current, and word.
void SearchIndexExternal::setCurrentDoc | ( | const Definition * | ctx, |
const QCString & | anchor, | ||
bool | isSourceFile ) |
Definition at line 450 of file searchindex.cpp.
References addHtmlExtensionIfMissing(), SearchIndexExternal::SearchDocEntry::args, Config_getString, definitionToName(), Definition::definitionType(), SearchIndexExternal::SearchDocEntry::extId, filterTitle(), g_searchIndexMutex, Definition::getOutputFileBase(), GroupDef::groupTitle(), PageDef::hasTitle(), QCString::isEmpty(), m_current, m_docEntries, SearchIndexExternal::SearchDocEntry::name, Definition::qualifiedName(), QCString::str(), stripPath(), PageDef::title(), toFileDef(), toGroupDef(), toMemberDef(), toPageDef(), SearchIndexExternal::SearchDocEntry::type, Definition::TypeGroup, Definition::TypeMember, Definition::TypePage, and SearchIndexExternal::SearchDocEntry::url.
void SearchIndexExternal::write | ( | const QCString & | file | ) |
Definition at line 503 of file searchindex.cpp.
References convertToXML(), err, m_docEntries, Portable::openOutputStream(), and qPrint().
|
private |
Definition at line 133 of file searchindex.h.
Referenced by addWord(), and setCurrentDoc().
|
private |
Definition at line 132 of file searchindex.h.
Referenced by setCurrentDoc(), and write().