Doxygen
|
Helper class to run dot from doxygen from multiple threads. More...
#include <src/dotrunner.h>
Classes | |
struct | DotJob |
Public Member Functions | |
DotRunner (const QCString &absDotName, const QCString &md5Hash=QCString()) | |
Creates a runner for a dot file. | |
void | addJob (const QCString &format, const QCString &output, const QCString &srcFile, int srcLine) |
Adds an additional job to the run. | |
void | preventCleanUp () |
Prevent cleanup of the dot file (for user provided dot files) | |
bool | run () |
Runs dot for all jobs added. | |
QCString | getMd5Hash () |
Static Public Member Functions | |
static bool | readBoundingBox (const QCString &fileName, int *width, int *height, bool isEps) |
Private Attributes | |
QCString | m_file |
QCString | m_md5Hash |
QCString | m_dotExe |
bool | m_cleanUp |
std::vector< DotJob > | m_jobs |
Helper class to run dot from doxygen from multiple threads.
Definition at line 30 of file dotrunner.h.
Creates a runner for a dot file.
Definition at line 250 of file dotrunner.cpp.
References Config_getBool, m_cleanUp, m_dotExe, m_file, and m_md5Hash.
void DotRunner::addJob | ( | const QCString & | format, |
const QCString & | output, | ||
const QCString & | srcFile, | ||
int | srcLine ) |
Adds an additional job to the run.
Performing multiple jobs one file can be faster.
Definition at line 259 of file dotrunner.cpp.
References m_jobs.
Referenced by DotGraph::prepareDotFile(), writeDotGraphFromFile(), and writeDotImageMapFromFile().
|
inline |
|
inline |
Prevent cleanup of the dot file (for user provided dot files)
Definition at line 54 of file dotrunner.h.
References m_cleanUp.
Referenced by writeDotGraphFromFile(), and writeDotImageMapFromFile().
|
static |
Definition at line 130 of file dotrunner.cpp.
References DBG, err, extractBoundingBox(), Portable::openInputStream(), and qPrint().
Referenced by run(), and DotFilePatcher::writeVecGfxFigure().
bool DotRunner::run | ( | ) |
Runs dot for all jobs added.
Definition at line 281 of file dotrunner.cpp.
References checkPngResult(), Config_getBool, err_full, FALSE, Portable::fopen(), getBaseNameOfOutput(), m_cleanUp, m_dotExe, m_file, m_jobs, m_md5Hash, MAX_LATEX_GRAPH_SIZE, qPrint(), readBoundingBox(), resetPDFSize(), Portable::system(), TRUE, and Portable::unlink().
Referenced by DotManager::run(), writeDotGraphFromFile(), and writeDotImageMapFromFile().
|
private |
Definition at line 67 of file dotrunner.h.
Referenced by DotRunner(), preventCleanUp(), and run().
|
private |
Definition at line 66 of file dotrunner.h.
Referenced by DotRunner(), and run().
|
private |
Definition at line 64 of file dotrunner.h.
Referenced by DotRunner(), and run().
|
private |
Definition at line 68 of file dotrunner.h.
|
private |
Definition at line 65 of file dotrunner.h.
Referenced by DotRunner(), getMd5Hash(), and run().