Public Member Functions | Private Attributes | List of all members
DirRelation Class Reference

#include <dirdef.h>

Public Member Functions

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

Private Attributes

QCString m_name
 
DirDefm_src
 
UsedDirm_dst
 

Detailed Description

A usage relation between two directories.

Definition at line 149 of file dirdef.h.

Constructor & Destructor Documentation

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

Definition at line 152 of file dirdef.h.

153  : m_name(name), m_src(src), m_dst(dst) {}
QCString m_name
Definition: dirdef.h:160
DirDef * m_src
Definition: dirdef.h:161
UsedDir * m_dst
Definition: dirdef.h:162

Member Function Documentation

UsedDir* DirRelation::destination ( ) const
inline

Definition at line 155 of file dirdef.h.

155 { return m_dst; }
UsedDir * m_dst
Definition: dirdef.h:162
QCString DirRelation::getOutputFileBase ( ) const
inline

Definition at line 157 of file dirdef.h.

157 { return m_name; }
QCString m_name
Definition: dirdef.h:160
DirDef* DirRelation::source ( ) const
inline

Definition at line 154 of file dirdef.h.

154 { return m_src; }
DirDef * m_src
Definition: dirdef.h:161
void DirRelation::writeDocumentation ( OutputList ol)

Definition at line 732 of file dirdef.cpp.

733 {
734  static bool generateTreeView = Config_getBool("GENERATE_TREEVIEW");
735  ol.pushGeneratorState();
737 
739  m_src->shortName()+" &rarr; "+
740  m_dst->dir()->shortName());
742  m_src->displayName()+" -> "+
743  m_dst->dir()->shortName());
745  title,HLI_None,!generateTreeView,m_src->getOutputFileBase());
746 
747  if (!generateTreeView)
748  {
749  // write navigation path
751  ol.endQuickIndices();
752  }
753  ol.startContents();
754 
755  ol.writeString("<h3>"+shortTitle+"</h3>");
756  ol.writeString("<table class=\"dirtab\">");
757  ol.writeString("<tr class=\"dirtab\">");
758  ol.writeString("<th class=\"dirtab\">");
760  ol.writeString("</th>");
761  ol.writeString("<th class=\"dirtab\">");
763  ol.writeString("</th>");
764  ol.writeString("</tr>");
765 
767  FilePair *fp;
768  for (fpi.toFirst();(fp=fpi.current());++fpi)
769  {
770  ol.writeString("<tr class=\"dirtab\">");
771  ol.writeString("<td class=\"dirtab\">");
772  writePartialFilePath(ol,m_src,fp->source());
773  ol.writeString("</td>");
774  ol.writeString("<td class=\"dirtab\">");
775  writePartialFilePath(ol,m_dst->dir(),fp->destination());
776  ol.writeString("</td>");
777  ol.writeString("</tr>");
778  }
779  ol.writeString("</table>");
780 
781  ol.endContents();
782 
784 
785  ol.popGeneratorState();
786 }
void endFileWithNavPath(Definition *d, OutputList &ol)
Definition: index.cpp:282
const QCString & shortName() const
Definition: dirdef.h:57
void startFile(OutputList &ol, const char *name, const char *manName, const char *title, HighlightedItem hli, bool additionalIndices, const char *altSidebarName)
Definition: index.cpp:244
virtual QCString trDirRelation(const char *name)=0
void writeString(const char *text)
Definition: outputlist.h:119
void disableAllBut(OutputGenerator::OutputType o)
Definition: outputlist.cpp:49
void writeNavigationPath(OutputList &ol) const
QCString pathFragment() const
static void writePartialFilePath(OutputList &ol, const DirDef *root, const FileDef *fd)
Definition: dirdef.cpp:713
QCString getOutputFileBase() const
Definition: dirdef.h:157
bool parseText(const QCString &textStr)
Definition: outputlist.cpp:175
QCString displayName(bool=TRUE) const
Definition: dirdef.h:56
void popGeneratorState()
Definition: outputlist.cpp:121
Definition: sortdict.h:73
const FilePairDict & filePairs() const
Definition: dirdef.h:138
void pushGeneratorState()
Definition: outputlist.cpp:111
#define Config_getBool(val)
Definition: config.cpp:664
virtual QCString trFileIn(const char *name)=0
void endQuickIndices()
Definition: outputlist.h:352
void endContents()
Definition: outputlist.h:366
virtual QCString trIncludesFileIn(const char *name)=0
DirDef * m_src
Definition: dirdef.h:161
QCString getOutputFileBase() const
Definition: dirdef.cpp:113
Translator * theTranslator
Definition: language.cpp:157
UsedDir * m_dst
Definition: dirdef.h:162
const DirDef * dir() const
Definition: dirdef.h:139
void startContents()
Definition: outputlist.h:364

Member Data Documentation

UsedDir* DirRelation::m_dst
private

Definition at line 162 of file dirdef.h.

QCString DirRelation::m_name
private

Definition at line 160 of file dirdef.h.

DirDef* DirRelation::m_src
private

Definition at line 161 of file dirdef.h.


The documentation for this class was generated from the following files: