Doxygen
DirRelation类 参考

A usage relation between two directories. 更多...

#include <dirdef.h>

+ DirRelation 的协作图:

Public 成员函数

 DirRelation (const QCString &name, const DirDef *src, UsedDir *dst)
 
const DirDefsource () const
 
UsedDirdestination () const
 
void writeDocumentation (OutputList &ol)
 
QCString getOutputFileBase () const
 

Private 属性

QCString m_name
 
const DirDefm_src
 
UsedDirm_dst
 

详细描述

A usage relation between two directories.

在文件 dirdef.h159 行定义.

构造及析构函数说明

◆ DirRelation()

DirRelation::DirRelation ( const QCString name,
const DirDef src,
UsedDir dst 
)
inline

在文件 dirdef.h162 行定义.

163  : m_name(name), m_src(src), m_dst(dst) {}

成员函数说明

◆ destination()

UsedDir* DirRelation::destination ( ) const
inline

在文件 dirdef.h165 行定义.

165 { return m_dst; }

引用了 m_dst.

◆ getOutputFileBase()

QCString DirRelation::getOutputFileBase ( ) const
inline

在文件 dirdef.h167 行定义.

167 { return m_name; }

引用了 m_name.

被这些函数引用 writeDocumentation().

◆ source()

const DirDef* DirRelation::source ( ) const
inline

在文件 dirdef.h164 行定义.

164 { return m_src; }

引用了 m_src.

◆ writeDocumentation()

void DirRelation::writeDocumentation ( OutputList ol)

在文件 dirdef.cpp872 行定义.

873 {
874  static bool generateTreeView = Config_getBool(GENERATE_TREEVIEW);
875  ol.pushGeneratorState();
877 
879  (m_src->shortName()+" &rarr; "+m_dst->dir()->shortName()));
881  (m_src->displayName()+" -> "+m_dst->dir()->shortName()));
883  title,HLI_None,!generateTreeView,m_src->getOutputFileBase());
884 
885  if (!generateTreeView)
886  {
887  // write navigation path
889  ol.endQuickIndices();
890  }
891  ol.startContents();
892 
893  ol.writeString("<h3>"+shortTitle+"</h3>");
894  ol.writeString("<table class=\"dirtab\">");
895  ol.writeString("<tr class=\"dirtab\">");
896  ol.writeString("<th class=\"dirtab\">");
898  ol.writeString("</th>");
899  ol.writeString("<th class=\"dirtab\">");
901  ol.writeString("</th>");
902  ol.writeString("</tr>");
903 
904  for (const auto &fp : m_dst->filePairs())
905  {
906  ol.writeString("<tr class=\"dirtab\">");
907  ol.writeString("<td class=\"dirtab\">");
908  writePartialFilePath(ol,m_src,fp->source());
909  ol.writeString("</td>");
910  ol.writeString("<td class=\"dirtab\">");
911  writePartialFilePath(ol,m_dst->dir(),fp->destination());
912  ol.writeString("</td>");
913  ol.writeString("</tr>");
914  }
915  ol.writeString("</table>");
916 
917  ol.endContents();
918 
920 
921  ol.popGeneratorState();
922 }

引用了 Config_getBool, UsedDir::dir(), OutputList::disableAllBut(), DirDef::displayName(), OutputList::endContents(), endFileWithNavPath(), OutputList::endQuickIndices(), UsedDir::filePairs(), DirDef::getOutputFileBase(), getOutputFileBase(), HLI_None, OutputGenerator::Html, m_dst, m_src, OutputList::parseText(), Definition::pathFragment(), OutputList::popGeneratorState(), OutputList::pushGeneratorState(), DirDef::shortName(), OutputList::startContents(), startFile(), theTranslator, Translator::trDirRelation(), Translator::trFileIn(), Translator::trIncludesFileIn(), DefinitionMutable::writeNavigationPath(), writePartialFilePath() , 以及 OutputList::writeString().

类成员变量说明

◆ m_dst

UsedDir* DirRelation::m_dst
private

在文件 dirdef.h172 行定义.

被这些函数引用 destination() , 以及 writeDocumentation().

◆ m_name

QCString DirRelation::m_name
private

在文件 dirdef.h170 行定义.

被这些函数引用 getOutputFileBase().

◆ m_src

const DirDef* DirRelation::m_src
private

在文件 dirdef.h171 行定义.

被这些函数引用 source() , 以及 writeDocumentation().


该类的文档由以下文件生成:
OutputList::disableAllBut
void disableAllBut(OutputGenerator::OutputType o)
Definition: outputlist.cpp:76
writePartialFilePath
static void writePartialFilePath(OutputList &ol, const DirDef *root, const FileDef *fd)
Definition: dirdef.cpp:853
OutputList::writeString
void writeString(const QCString &text)
Definition: outputlist.h:111
Definition::pathFragment
virtual QCString pathFragment() const =0
endFileWithNavPath
void endFileWithNavPath(const Definition *d, OutputList &ol)
Definition: index.cpp:274
DefinitionMutable::writeNavigationPath
virtual void writeNavigationPath(OutputList &ol) const =0
DirRelation::getOutputFileBase
QCString getOutputFileBase() const
Definition: dirdef.h:167
DirDef::getOutputFileBase
virtual QCString getOutputFileBase() const =0
OutputList::endQuickIndices
void endQuickIndices()
Definition: outputlist.h:349
DirDef::shortName
virtual const QCString shortName() const =0
DirRelation::m_src
const DirDef * m_src
Definition: dirdef.h:171
OutputList::endContents
void endContents()
Definition: outputlist.h:363
Translator::trDirRelation
virtual QCString trDirRelation(const QCString &name)=0
theTranslator
Translator * theTranslator
Definition: language.cpp:156
DirRelation::m_dst
UsedDir * m_dst
Definition: dirdef.h:172
startFile
void startFile(OutputList &ol, const QCString &name, const QCString &manName, const QCString &title, HighlightedItem hli, bool additionalIndices, const QCString &altSidebarName)
Definition: index.cpp:235
OutputGenerator::Html
@ Html
Definition: outputgen.h:333
UsedDir::filePairs
const FilePairLinkedMap & filePairs() const
Definition: dirdef.h:78
OutputList::startContents
void startContents()
Definition: outputlist.h:361
OutputList::popGeneratorState
void popGeneratorState()
Definition: outputlist.cpp:134
Translator::trIncludesFileIn
virtual QCString trIncludesFileIn(const QCString &name)=0
Config_getBool
#define Config_getBool(name)
Definition: config.h:33
UsedDir::dir
const DirDef * dir() const
Definition: dirdef.h:79
OutputList::parseText
void parseText(const QCString &textStr)
Definition: outputlist.cpp:179
OutputList::pushGeneratorState
void pushGeneratorState()
Definition: outputlist.cpp:126
Translator::trFileIn
virtual QCString trFileIn(const QCString &name)=0
DirDef::displayName
virtual QCString displayName(bool=TRUE) const =0
HLI_None
@ HLI_None
Definition: index.h:142
DirRelation::m_name
QCString m_name
Definition: dirdef.h:170
QCString
This is an alternative implementation of QCString.
Definition: qcstring.h:108