The DotFilePatcher
Class Reference
Helper class to insert a set of map file into an output file. More...
Declaration
Included Headers
Public Constructors Index
DotFilePatcher (const QCString &patchFile) | |
Public Member Functions Index
int | addMap (const QCString &mapFile, const QCString &relPath, bool urlOnly, const QCString &context, const QCString &label) |
int | addFigure (const QCString &baseName, const QCString &figureName, bool heightCheck) |
int | addSVGConversion (const QCString &relPath, bool urlOnly, const QCString &context, bool zoomable, int graphId) |
int | addSVGObject (const QCString &baseName, const QCString &figureName, const QCString &relPath) |
bool | run () const |
bool | isSVGFile () const |
Private Member Attributes Index
std::vector< Map > | m_maps |
QCString | m_patchFile |
Public Static Functions Index
static bool | convertMapFile (TextStream &t, const QCString &mapName, const QCString &relPath, bool urlOnly=FALSE, const QCString &context=QCString()) |
static bool | writeSVGFigureLink (TextStream &out, const QCString &relPath, const QCString &baseName, const QCString &absImgName) |
Check if a reference to a SVG figure can be written and do so if possible. More... | |
static bool | writeVecGfxFigure (TextStream &out, const QCString &baseName, const QCString &figureName) |
Description
Helper class to insert a set of map file into an output file.
Definition at line 26 of file dotfilepatcher.h.
Public Constructors
DotFilePatcher()
|
Declaration at line 29 of file dotfilepatcher.h, definition at line 262 of file dotfilepatcher.cpp.
Reference m_patchFile.
Public Member Functions
addFigure()
|
Declaration at line 33 of file dotfilepatcher.h, definition at line 280 of file dotfilepatcher.cpp.
Reference m_maps.
addMap()
|
Declaration at line 30 of file dotfilepatcher.h, definition at line 272 of file dotfilepatcher.cpp.
Reference m_maps.
addSVGConversion()
|
Declaration at line 36 of file dotfilepatcher.h, definition at line 288 of file dotfilepatcher.cpp.
Reference m_maps.
Referenced by writeDotImageMapFromFile.
addSVGObject()
|
Declaration at line 39 of file dotfilepatcher.h, definition at line 297 of file dotfilepatcher.cpp.
Reference m_maps.
isSVGFile()
|
Declaration at line 42 of file dotfilepatcher.h, definition at line 267 of file dotfilepatcher.cpp.
Reference m_patchFile.
Referenced by run.
run()
|
Declaration at line 41 of file dotfilepatcher.h, definition at line 306 of file dotfilepatcher.cpp.
References Config_getBool, DotFilePatcher::Map::context, convertMapFile, correctId, QCString::data, TextStream::empty, err, FALSE, QCString::find, findIndex, TextStream::flush, DotFilePatcher::Map::graphId, isSVGFile, DotFilePatcher::Map::label, QCString::left, m_maps, m_patchFile, DotFilePatcher::Map::mapFile, QCString::mid, Portable::openInputStream, Portable::openOutputStream, DotFilePatcher::Map::relPath, Dir::remove, Dir::rename, replaceRef, TextStream::setStream, QCString::str, TextStream::str, stripPath, substitute, svgZoomFooter1, svgZoomFooter2, svgZoomHeader0, svgZoomHeader0_noinit, svgZoomHeader1, svgZoomHeader2, TRUE, DotFilePatcher::Map::urlOnly, writeSVGFigureLink, writeVecGfxFigure and DotFilePatcher::Map::zoomable.
Referenced by writeDotImageMapFromFile.
Private Member Attributes
m_maps
|
Definition at line 69 of file dotfilepatcher.h.
Referenced by addFigure, addMap, addSVGConversion, addSVGObject and run.
m_patchFile
|
Definition at line 70 of file dotfilepatcher.h.
Referenced by DotFilePatcher, isSVGFile and run.
Public Static Functions
convertMapFile()
| static |
converts the rectangles in a client site image map into a stream
- Parameters
-
t the stream to which the result is written.
mapName the name of the map file.
relPath the relative path to the root of the output directory (used in case CREATE_SUBDIRS is enabled).
urlOnly if FALSE the url field in the map contains an external references followed by a $ and then the URL.
context the context (file, class, or namespace) in which the map file was found
- Returns
TRUE if successful.
Declaration at line 44 of file dotfilepatcher.h, definition at line 220 of file dotfilepatcher.cpp.
References err, FALSE, QCString::find, QCString::left, QCString::length, Portable::openInputStream, replaceRef, QCString::right, QCString::startsWith and TRUE.
Referenced by insertMapFile, run and writeDotImageMapFromFile.
writeSVGFigureLink()
| static |
Check if a reference to a SVG figure can be written and do so if possible.
Returns FALSE if not possible (for instance because the SVG file is not yet generated).
Declaration at line 48 of file dotfilepatcher.h, definition at line 582 of file dotfilepatcher.cpp.
References FALSE, readSVGSize, TRUE and writeSVGNotSupported.
Referenced by DotGraph::generateCode, run and writeDotImageMapFromFile.
writeVecGfxFigure()
| static |
Declaration at line 51 of file dotfilepatcher.h, definition at line 621 of file dotfilepatcher.cpp.
References Config_getBool, FALSE, DotRunner::readBoundingBox and TRUE.
Referenced by DotGraph::generateCode and run.
The documentation for this class was generated from the following files:
Generated via doxygen2docusaurus by Doxygen 1.14.0.