My Project
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 151 of file dirdef.h.

Constructor & Destructor Documentation

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

Definition at line 154 of file dirdef.h.

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

Member Function Documentation

UsedDir* DirRelation::destination ( ) const
inline

Definition at line 157 of file dirdef.h.

References m_dst.

{ return m_dst; }
QCString DirRelation::getOutputFileBase ( ) const
inline

Definition at line 159 of file dirdef.h.

References m_name.

Referenced by writeDocumentation().

{ return m_name; }
DirDef* DirRelation::source ( ) const
inline

Definition at line 156 of file dirdef.h.

References m_src.

{ return m_src; }
void DirRelation::writeDocumentation ( OutputList ol)

Definition at line 777 of file dirdef.cpp.

References 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(), Definition::writeNavigationPath(), writePartialFilePath(), and OutputList::writeString().

Referenced by generateDirDocs().

{
static bool generateTreeView = Config_getBool(GENERATE_TREEVIEW);
QCString shortTitle=theTranslator->trDirRelation(
m_src->shortName()+" &rarr; "+
QCString title=theTranslator->trDirRelation(
m_src->displayName()+" -> "+
title,HLI_None,!generateTreeView,m_src->getOutputFileBase());
if (!generateTreeView)
{
// write navigation path
}
ol.writeString("<h3>"+shortTitle+"</h3>");
ol.writeString("<table class=\"dirtab\">");
ol.writeString("<tr class=\"dirtab\">");
ol.writeString("<th class=\"dirtab\">");
ol.writeString("</th>");
ol.writeString("<th class=\"dirtab\">");
ol.writeString("</th>");
ol.writeString("</tr>");
FilePair *fp;
for (fpi.toFirst();(fp=fpi.current());++fpi)
{
ol.writeString("<tr class=\"dirtab\">");
ol.writeString("<td class=\"dirtab\">");
writePartialFilePath(ol,m_src,fp->source());
ol.writeString("</td>");
ol.writeString("<td class=\"dirtab\">");
writePartialFilePath(ol,m_dst->dir(),fp->destination());
ol.writeString("</td>");
ol.writeString("</tr>");
}
ol.writeString("</table>");
}

Member Data Documentation

UsedDir* DirRelation::m_dst
private

Definition at line 164 of file dirdef.h.

Referenced by destination(), and writeDocumentation().

QCString DirRelation::m_name
private

Definition at line 162 of file dirdef.h.

Referenced by getOutputFileBase().

DirDef* DirRelation::m_src
private

Definition at line 163 of file dirdef.h.

Referenced by source(), and writeDocumentation().


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