Doxygen
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#include "dirdef.h"
23
24/** Representation of an directory dependency graph */
25class DotDirDeps : public DotGraph
26{
27 public:
28 DotDirDeps(const DirDef *dir);
29 ~DotDirDeps() override;
31
32 bool isTrivial() const;
36 const QCString &path,
37 const QCString &fileName,
38 const QCString &relPath,
39 bool writeImageMap=TRUE,
40 int graphId=-1,
41 bool linkRelations=TRUE);
42
43 protected:
44 QCString getBaseName() const override;
45 QCString getMapLabel() const override;
46 void computeTheGraph() override;
47 QCString getImgAltText() const override;
48
49 private:
50 const DirDef *m_dir = nullptr;
51
52 bool m_linkRelations = false;
53};
54
55using DotDirDepsPtr = std::shared_ptr<DotDirDeps>;
56
57#endif
A model of a directory symbol.
Definition dirdef.h:110
QCString getImgAltText() const override
QCString getMapLabel() const override
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)
~DotDirDeps() override
void computeTheGraph() override
const DirDef * m_dir
Definition dotdirdeps.h:50
bool isTrivial() const
bool m_linkRelations
Definition dotdirdeps.h:52
DotDirDeps(const DirDef *dir)
QCString getBaseName() const override
DotGraph()
Definition dotgraph.h:38
This is an alternative implementation of QCString.
Definition qcstring.h:101
Text streaming class that buffers data.
Definition textstream.h:36
#define NON_COPYABLE(cls)
Macro to help implementing the rule of 5 for a non-copyable & movable class.
Definition construct.h:37
std::shared_ptr< DotDirDeps > DotDirDepsPtr
Definition dotdirdeps.h:55
EmbeddedOutputFormat
Definition dotgraph.h:30
GraphOutputFormat
Definition dotgraph.h:29
#define TRUE
Definition qcstring.h:37