Doxygen
Loading...
Searching...
No Matches
DotDirDeps Class Reference

Representation of an directory dependency graph. More...

#include <src/dotdirdeps.h>

Inheritance diagram for DotDirDeps:
Collaboration diagram for DotDirDeps:

Public Member Functions

 DotDirDeps (const DirDef *dir)
 
 ~DotDirDeps () override
 
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 Member Functions inherited from DotGraph
 DotGraph ()
 
virtual ~DotGraph ()=default
 

Protected Member Functions

QCString getBaseName () const override
 
QCString getMapLabel () const override
 
void computeTheGraph () override
 
QCString getImgAltText () const override
 
Protected Member Functions inherited from DotGraph
int getNextNodeNumber ()
 returns the node number.
 
int getNextEdgeNumber ()
 returns the edge number.
 
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 Attributes

const DirDefm_dir = nullptr
 
bool m_linkRelations = false
 

Additional Inherited Members

Static Protected Member Functions inherited from 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 Attributes inherited from DotGraph
GraphOutputFormat m_graphFormat = GraphOutputFormat::BITMAP
 
EmbeddedOutputFormat m_textFormat = EmbeddedOutputFormat::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
 

Detailed Description

Representation of an directory dependency graph.

Definition at line 25 of file dotdirdeps.h.

Constructor & Destructor Documentation

◆ DotDirDeps()

DotDirDeps::DotDirDeps ( const DirDef * dir)

Definition at line 403 of file dotdirdeps.cpp.

403 : m_dir(dir)
404{
405}
const DirDef * m_dir
Definition dotdirdeps.h:50

References m_dir.

◆ ~DotDirDeps()

DotDirDeps::~DotDirDeps ( )
override

Definition at line 407 of file dotdirdeps.cpp.

408{
409}

Member Function Documentation

◆ computeTheGraph()

void DotDirDeps::computeTheGraph ( )
overrideprotectedvirtual

Implements DotGraph.

Definition at line 417 of file dotdirdeps.cpp.

418{
419 // compute md5 checksum of the graph were are about to generate
420 TextStream md5stream;
421 writeGraphHeader(md5stream, m_dir->displayName());
422 md5stream << " compound=true\n";
424 writeGraphFooter(md5stream);
425 m_theGraph = md5stream.str();
426}
bool m_linkRelations
Definition dotdirdeps.h:52
static void writeGraphFooter(TextStream &t)
Definition dotgraph.cpp:301
static void writeGraphHeader(TextStream &t, const QCString &title=QCString())
Definition dotgraph.cpp:276
QCString m_theGraph
Definition dotgraph.h:95
std::string str() const
Return the contents of the buffer as a std::string object.
Definition textstream.h:229
void writeDotDirDepGraph(TextStream &t, const DirDef *dd, bool linkRelations)
Write DOT code for directory dependency graph.

References m_dir, m_linkRelations, DotGraph::m_theGraph, TextStream::str(), writeDotDirDepGraph(), DotGraph::writeGraphFooter(), and DotGraph::writeGraphHeader().

◆ getBaseName()

QCString DotDirDeps::getBaseName ( ) const
overrideprotectedvirtual

Implements DotGraph.

Definition at line 411 of file dotdirdeps.cpp.

412{
413 return m_dir->getOutputFileBase()+"_dep";
414
415}

References m_dir.

◆ getImgAltText()

QCString DotDirDeps::getImgAltText ( ) const
overrideprotectedvirtual

Reimplemented from DotGraph.

Definition at line 433 of file dotdirdeps.cpp.

434{
435 return convertToXML(m_dir->displayName());
436}
QCString convertToXML(const QCString &s, bool keepEntities)
Definition util.cpp:4421

References convertToXML(), and m_dir.

◆ getMapLabel()

QCString DotDirDeps::getMapLabel ( ) const
overrideprotectedvirtual

Implements DotGraph.

Definition at line 428 of file dotdirdeps.cpp.

429{
431}
QCString m_baseName
Definition dotgraph.h:94
#define FALSE
Definition qcstring.h:34
QCString escapeCharsInString(const QCString &name, bool allowDots, bool allowUnderscore)
Definition util.cpp:3839

References escapeCharsInString(), FALSE, and DotGraph::m_baseName.

◆ isTrivial()

bool DotDirDeps::isTrivial ( ) const

Definition at line 447 of file dotdirdeps.cpp.

448{
449 return m_dir->depGraphIsTrivial();
450}

References m_dir.

Referenced by 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 )

Definition at line 438 of file dotdirdeps.cpp.

441{
442 m_linkRelations = linkRelations;
443 m_urlOnly = TRUE;
444 return DotGraph::writeGraph(out, graphFormat, textFormat, path, fileName, relPath, generateImageMap, graphId);
445}
bool m_urlOnly
Definition dotgraph.h:100
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:115
#define TRUE
Definition qcstring.h:37

References m_linkRelations, DotGraph::m_urlOnly, TRUE, and DotGraph::writeGraph().

Referenced by DocbookGenerator::endDirDepGraph(), HtmlGenerator::endDirDepGraph(), LatexGenerator::endDirDepGraph(), and RTFGenerator::endDirDepGraph().

Member Data Documentation

◆ m_dir

const DirDef* DotDirDeps::m_dir = nullptr
private

Definition at line 50 of file dotdirdeps.h.

Referenced by computeTheGraph(), DotDirDeps(), getBaseName(), getImgAltText(), and isTrivial().

◆ m_linkRelations

bool DotDirDeps::m_linkRelations = false
private

Definition at line 52 of file dotdirdeps.h.

Referenced by computeTheGraph(), and writeGraph().


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