Doxygen
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
30class TextStream;
31
32/** Singleton that manages dot invocations and patching files for embedding image maps */
34{
35 public:
36 static DotManager *instance();
37 void addJob(const DotJob &newJob);
39 bool run();
40
41 private:
42 DotManager();
43 virtual ~DotManager();
45
47 std::map<std::string, DotFilePatcher> m_filePatchers;
49
50};
51
52void writeDotGraphFromFile(const QCString &inFile,const QCString &outDir,
53 const QCString &outFile,GraphOutputFormat format,
54 const QCString &srcFile,int srcLine,bool toIndex);
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
Helper class to insert a set of map file into an output file.
DotManager()
Definition dot.cpp:84
std::map< std::string, DotFilePatcher > m_filePatchers
Definition dot.h:47
DotFilePatcher * createFilePatcher(const QCString &fileName)
Definition dot.cpp:107
void addJob(const DotJob &newJob)
Definition dot.cpp:92
DotJobs m_jobs
Definition dot.h:48
bool run()
Definition dot.cpp:119
DotRunner m_runner
Definition dot.h:46
virtual ~DotManager()
Definition dot.cpp:88
static DotManager * instance()
Definition dot.cpp:78
Helper class to run dot from doxygen.
Definition dotrunner.h:30
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
void writeDotGraphFromFile(const QCString &inFile, const QCString &outDir, const QCString &outFile, GraphOutputFormat format, const QCString &srcFile, int srcLine, bool toIndex)
Definition dot.cpp:196
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
GraphOutputFormat
Definition dotgraph.h:29
std::vector< DotJob > DotJobs
Definition dotjob.h:36