Doxygen
Toggle main menu visibility
Loading...
Searching...
No Matches
dotdirdeps.h
Go to the documentation of this file.
1
/******************************************************************************
2
*
3
* Copyright (C) 1997-2019 by Dimitri van Heesch.
4
*
5
* Permission to use, copy, modify, and distribute this software and its
6
* documentation under the terms of the GNU General Public License is hereby
7
* granted. No representations are made about the suitability of this software
8
* for any purpose. It is provided "as is" without express or implied warranty.
9
* See the GNU General Public License for more details.
10
*
11
* Documents produced by Doxygen are derivative works derived from the
12
* input used in their production; they are not affected by this license.
13
*
14
*/
15
16
#ifndef DOTDIRDEPS_H
17
#define DOTDIRDEPS_H
18
19
#include <memory>
20
21
#include "
dotgraph.h
"
22
23
class
DirDef
;
24
25
/** Representation of an directory dependency graph */
26
class
DotDirDeps
final :
public
DotGraph
27
{
28
public
:
29
DotDirDeps
(
const
DirDef
*dir);
30
~DotDirDeps
()
override
;
31
NON_COPYABLE
(
DotDirDeps
)
32
33
bool
isTrivial
()
const
;
34
DString
writeGraph
(
TextStream
&out,
35
GraphOutputFormat
gf,
36
EmbeddedOutputFormat
ef,
37
const
DString
&path,
38
const
DString
&fileName,
39
const
DString
&relPath,
40
bool
writeImageMap=
true
,
41
int
graphId=-1,
42
bool
linkRelations=
true
);
43
44
protected
:
45
DString
getBaseName
()
const override
;
46
DString
getMapLabel
()
const override
;
47
void
computeTheGraph
()
override
;
48
DString
getImgAltText
()
const override
;
49
50
private
:
51
const
DirDef
*
m_dir
=
nullptr
;
52
53
bool
m_linkRelations
=
false
;
54
};
55
56
using
DotDirDepsPtr
= std::shared_ptr<DotDirDeps>;
57
58
#endif
DString
A String class for use with Doxygen wrapping std::string and adding some additional functionality off...
Definition
dstring.h:88
DirDef
A model of a directory symbol.
Definition
dirdef.h:108
DotDirDeps::getImgAltText
DString getImgAltText() const override
Definition
dotdirdeps.cpp:435
DotDirDeps::writeGraph
DString writeGraph(TextStream &out, GraphOutputFormat gf, EmbeddedOutputFormat ef, const DString &path, const DString &fileName, const DString &relPath, bool writeImageMap=true, int graphId=-1, bool linkRelations=true)
Definition
dotdirdeps.cpp:440
DotDirDeps::~DotDirDeps
~DotDirDeps() override
Definition
dotdirdeps.cpp:409
DotDirDeps::computeTheGraph
void computeTheGraph() override
Definition
dotdirdeps.cpp:419
DotDirDeps::m_dir
const DirDef * m_dir
Definition
dotdirdeps.h:51
DotDirDeps::getBaseName
DString getBaseName() const override
Definition
dotdirdeps.cpp:413
DotDirDeps::isTrivial
bool isTrivial() const
Definition
dotdirdeps.cpp:452
DotDirDeps::m_linkRelations
bool m_linkRelations
Definition
dotdirdeps.h:53
DotDirDeps::DotDirDeps
DotDirDeps(const DirDef *dir)
Definition
dotdirdeps.cpp:405
DotDirDeps::getMapLabel
DString getMapLabel() const override
Definition
dotdirdeps.cpp:430
DotGraph::DotGraph
DotGraph()
Definition
dotgraph.h:38
TextStream
Text streaming class that buffers data.
Definition
textstream.h:36
NON_COPYABLE
#define NON_COPYABLE(cls)
Macro to help implementing the rule of 5 for a non-copyable & movable class.
Definition
construct.h:37
DotDirDepsPtr
std::shared_ptr< DotDirDeps > DotDirDepsPtr
Definition
dotdirdeps.h:56
dotgraph.h
EmbeddedOutputFormat
EmbeddedOutputFormat
Definition
dotgraph.h:30
GraphOutputFormat
GraphOutputFormat
Definition
dotgraph.h:29
src
dotdirdeps.h
Generated by
1.19.0