Doxygen
DotDirDeps类 参考

Representation of an directory dependency graph 更多...

#include <dotdirdeps.h>

+ 类 DotDirDeps 继承关系图:
+ DotDirDeps 的协作图:

Public 成员函数

 DotDirDeps (const DirDef *dir)
 
 ~DotDirDeps ()
 
bool isTrivial () const
 
QCString writeGraph (TextStream &out, GraphOutputFormat gf, EmbeddedOutputFormat ef, const QCString &path, const QCString &fileName, const QCString &relPath, bool writeImageMap=TRUE, int graphId=-1, bool linkRelations=TRUE)
 
- Public 成员函数 继承自 DotGraph
 DotGraph ()
 
virtual ~DotGraph ()
 

Protected 成员函数

virtual QCString getBaseName () const
 
virtual QCString getMapLabel () const
 
virtual void computeTheGraph ()
 
virtual QCString getImgAltText () const
 
- Protected 成员函数 继承自 DotGraph
int getNextNodeNumber ()
 returns node numbers. 更多...
 
QCString writeGraph (TextStream &t, GraphOutputFormat gf, EmbeddedOutputFormat ef, const QCString &path, const QCString &fileName, const QCString &relPath, bool writeImageMap=TRUE, int graphId=-1)
 
virtual QCString absMapName () const
 
QCString absBaseName () const
 
QCString absDotName () const
 
QCString imgName () const
 
QCString absImgName () const
 
QCString relImgName () const
 

Private 属性

const DirDefm_dir = 0
 
bool m_linkRelations = false
 

额外继承的成员函数

- 静态 Protected 成员函数 继承自 DotGraph
static void writeGraphHeader (TextStream &t, const QCString &title=QCString())
 
static void writeGraphFooter (TextStream &t)
 
static void computeGraph (DotNode *root, GraphType gt, GraphOutputFormat format, const QCString &rank, bool renderParents, bool backArrows, const QCString &title, QCString &graphStr)
 
- Protected 属性 继承自 DotGraph
GraphOutputFormat m_graphFormat = GOF_BITMAP
 
EmbeddedOutputFormat m_textFormat = EOF_Html
 
Dir m_dir
 
QCString m_fileName
 
QCString m_relPath
 
bool m_generateImageMap = false
 
int m_graphId = 0
 
QCString m_absPath
 
QCString m_baseName
 
QCString m_theGraph
 
bool m_regenerate = false
 
bool m_doNotAddImageToIndex = false
 
bool m_noDivTag = false
 
bool m_zoomable = true
 
bool m_urlOnly = false
 

详细描述

Representation of an directory dependency graph

在文件 dotdirdeps.h25 行定义.

构造及析构函数说明

◆ DotDirDeps()

DotDirDeps::DotDirDeps ( const DirDef dir)

在文件 dotdirdeps.cpp397 行定义.

397  : m_dir(dir)
398 {
399 }

◆ ~DotDirDeps()

DotDirDeps::~DotDirDeps ( )

在文件 dotdirdeps.cpp401 行定义.

402 {
403 }

成员函数说明

◆ computeTheGraph()

void DotDirDeps::computeTheGraph ( )
protectedvirtual

实现了 DotGraph.

在文件 dotdirdeps.cpp411 行定义.

412 {
413  // compute md5 checksum of the graph were are about to generate
414  TextStream md5stream;
415  writeGraphHeader(md5stream, m_dir->displayName());
416  md5stream << " compound=true\n";
418  writeGraphFooter(md5stream);
419  m_theGraph = md5stream.str();
420 }

引用了 DirDef::displayName(), m_dir, m_linkRelations, DotGraph::m_theGraph, TextStream::str(), writeDotDirDepGraph(), DotGraph::writeGraphFooter() , 以及 DotGraph::writeGraphHeader().

◆ getBaseName()

QCString DotDirDeps::getBaseName ( ) const
protectedvirtual

实现了 DotGraph.

在文件 dotdirdeps.cpp405 行定义.

406 {
407  return m_dir->getOutputFileBase()+"_dep";
408 
409 }

引用了 DirDef::getOutputFileBase() , 以及 m_dir.

◆ getImgAltText()

QCString DotDirDeps::getImgAltText ( ) const
protectedvirtual

重载 DotGraph .

在文件 dotdirdeps.cpp427 行定义.

428 {
429  return convertToXML(m_dir->displayName());
430 }

引用了 convertToXML(), DirDef::displayName() , 以及 m_dir.

◆ getMapLabel()

QCString DotDirDeps::getMapLabel ( ) const
protectedvirtual

实现了 DotGraph.

在文件 dotdirdeps.cpp422 行定义.

423 {
425 }

引用了 escapeCharsInString(), FALSE , 以及 DotGraph::m_baseName.

◆ isTrivial()

bool DotDirDeps::isTrivial ( ) const

在文件 dotdirdeps.cpp441 行定义.

442 {
443  return m_dir->depGraphIsTrivial();
444 }

引用了 DirDef::depGraphIsTrivial() , 以及 m_dir.

被这些函数引用 DirDefImpl::writeDirectoryGraph().

◆ writeGraph()

QCString DotDirDeps::writeGraph ( TextStream out,
GraphOutputFormat  gf,
EmbeddedOutputFormat  ef,
const QCString path,
const QCString fileName,
const QCString relPath,
bool  writeImageMap = TRUE,
int  graphId = -1,
bool  linkRelations = TRUE 
)

在文件 dotdirdeps.cpp432 行定义.

435 {
436  m_linkRelations = linkRelations;
437  m_urlOnly = TRUE;
438  return DotGraph::writeGraph(out, graphFormat, textFormat, path, fileName, relPath, generateImageMap, graphId);
439 }

引用了 m_linkRelations, DotGraph::m_urlOnly, TRUE , 以及 DotGraph::writeGraph().

被这些函数引用 RTFGenerator::endDirDepGraph(), DocbookGenerator::endDirDepGraph(), LatexGenerator::endDirDepGraph() , 以及 HtmlGenerator::endDirDepGraph().

类成员变量说明

◆ m_dir

const DirDef* DotDirDeps::m_dir = 0
private

在文件 dotdirdeps.h61 行定义.

被这些函数引用 computeTheGraph(), getBaseName(), getImgAltText() , 以及 isTrivial().

◆ m_linkRelations

bool DotDirDeps::m_linkRelations = false
private

在文件 dotdirdeps.h63 行定义.

被这些函数引用 computeTheGraph() , 以及 writeGraph().


该类的文档由以下文件生成:
DotGraph::m_urlOnly
bool m_urlOnly
Definition: dotgraph.h:94
DotDirDeps::m_linkRelations
bool m_linkRelations
Definition: dotdirdeps.h:63
DotGraph::m_theGraph
QCString m_theGraph
Definition: dotgraph.h:89
DotGraph::writeGraphFooter
static void writeGraphFooter(TextStream &t)
Definition: dotgraph.cpp:300
TextStream
Text streaming class that buffers data.
Definition: textstream.h:33
DotGraph::writeGraphHeader
static void writeGraphHeader(TextStream &t, const QCString &title=QCString())
Definition: dotgraph.cpp:268
DirDef::getOutputFileBase
virtual QCString getOutputFileBase() const =0
TRUE
#define TRUE
Definition: qcstring.h:36
TextStream::str
std::string str() const
Return the contents of the buffer as a std::string object
Definition: textstream.h:208
DotGraph::writeGraph
QCString writeGraph(TextStream &t, GraphOutputFormat gf, EmbeddedOutputFormat ef, const QCString &path, const QCString &fileName, const QCString &relPath, bool writeImageMap=TRUE, int graphId=-1)
Definition: dotgraph.cpp:111
writeDotDirDepGraph
void writeDotDirDepGraph(TextStream &t, const DirDef *dd, bool linkRelations)
Write DOT code for directory dependency graph.
Definition: dotdirdeps.cpp:284
escapeCharsInString
QCString escapeCharsInString(const QCString &name, bool allowDots, bool allowUnderscore)
Definition: util.cpp:3442
DotDirDeps::m_dir
const DirDef * m_dir
Definition: dotdirdeps.h:61
DirDef::depGraphIsTrivial
virtual bool depGraphIsTrivial() const =0
convertToXML
QCString convertToXML(const QCString &s, bool keepEntities)
Definition: util.cpp:3948
DirDef::displayName
virtual QCString displayName(bool=TRUE) const =0
DotGraph::m_baseName
QCString m_baseName
Definition: dotgraph.h:88
FALSE
#define FALSE
Definition: qcstring.h:33