Doxygen
Toggle main menu visibility
Loading...
Searching...
No Matches
dot.h
Go to the documentation of this file.
1
/******************************************************************************
2
*
3
* Copyright (C) 1997-2026 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 DOT_H
17
#define DOT_H
18
19
#include <map>
20
#include <vector>
21
22
#include "
qcstring.h
"
23
#include "
dotgraph.h
"
// only for GraphOutputFormat
24
#include "
dotfilepatcher.h
"
25
#include "
dotrunner.h
"
26
#include "
dotjob.h
"
27
#include "
doxygen.h
"
28
#include "
construct.h
"
29
30
class
TextStream
;
31
32
/** Singleton that manages dot invocations and patching files for embedding image maps */
33
class
DotManager
34
{
35
public
:
36
static
DotManager
*
instance
();
37
void
addJob
(
const
DotJob
&newJob);
38
DotFilePatcher
*
createFilePatcher
(
const
QCString
&fileName);
39
bool
run
();
40
41
private
:
42
DotManager
();
43
virtual
~DotManager
();
44
NON_COPYABLE
(
DotManager
)
45
46
DotRunner
m_runner
;
47
std::map<std::
string
,
DotFilePatcher
>
m_filePatchers
;
48
DotJobs
m_jobs
;
49
50
};
51
52
void
writeDotGraphFromFile
(const
QCString
&inFile,const
QCString
&outDir,
53
const
QCString
&outFile,
GraphOutputFormat
format,
54
const
QCString
&srcFile,
int
srcLine,
bool
toIndex);
55
void
writeDotImageMapFromFile
(
TextStream
&t,
56
const
QCString
&inFile, const
QCString
& outDir,
57
const
QCString
&relPath,const
QCString
& baseName,
58
const
QCString
&context,
int
graphId,
59
const
QCString
&srcFile,
int
srcLine,
bool
newFile);
60
61
#endif
// DOT_H
DotFilePatcher
Helper class to insert a set of map file into an output file.
Definition
dotfilepatcher.h:27
DotManager::DotManager
DotManager()
Definition
dot.cpp:84
DotManager::m_filePatchers
std::map< std::string, DotFilePatcher > m_filePatchers
Definition
dot.h:47
DotManager::createFilePatcher
DotFilePatcher * createFilePatcher(const QCString &fileName)
Definition
dot.cpp:107
DotManager::addJob
void addJob(const DotJob &newJob)
Definition
dot.cpp:92
DotManager::m_jobs
DotJobs m_jobs
Definition
dot.h:48
DotManager::run
bool run()
Definition
dot.cpp:119
DotManager::m_runner
DotRunner m_runner
Definition
dot.h:46
DotManager::~DotManager
virtual ~DotManager()
Definition
dot.cpp:88
DotManager::instance
static DotManager * instance()
Definition
dot.cpp:78
DotRunner
Helper class to run dot from doxygen.
Definition
dotrunner.h:30
QCString
This is an alternative implementation of QCString.
Definition
qcstring.h:101
TextStream
Text streaming class that buffers data.
Definition
textstream.h:36
construct.h
NON_COPYABLE
#define NON_COPYABLE(cls)
Macro to help implementing the rule of 5 for a non-copyable & movable class.
Definition
construct.h:37
writeDotGraphFromFile
void writeDotGraphFromFile(const QCString &inFile, const QCString &outDir, const QCString &outFile, GraphOutputFormat format, const QCString &srcFile, int srcLine, bool toIndex)
Definition
dot.cpp:196
writeDotImageMapFromFile
void writeDotImageMapFromFile(TextStream &t, const QCString &inFile, const QCString &outDir, const QCString &relPath, const QCString &baseName, const QCString &context, int graphId, const QCString &srcFile, int srcLine, bool newFile)
Definition
dot.cpp:249
dotfilepatcher.h
dotgraph.h
GraphOutputFormat
GraphOutputFormat
Definition
dotgraph.h:29
dotjob.h
DotJobs
std::vector< DotJob > DotJobs
Definition
dotjob.h:36
dotrunner.h
doxygen.h
qcstring.h
DotJob
Definition
dotjob.h:23
src
dot.h
Generated by
1.17.0