Doxygen
|
Singleton that manages plantuml relation actions. More...
#include <src/plantuml.h>
Public Types | |
enum | OutputFormat { PUML_BITMAP , PUML_EPS , PUML_SVG } |
Plant UML output image formats. More... | |
using | FilesMap = std::map< std::string, StringVector > |
using | ContentMap = std::map< std::string, PlantumlContent > |
Public Member Functions | |
void | run () |
Run plant UML tool for all images. | |
QCString | writePlantUMLSource (const QCString &outDirArg, const QCString &fileName, const QCString &content, OutputFormat format, const QCString &engine, const QCString &srcFile, int srcLine, bool inlineCode) |
Write a PlantUML compatible file. | |
void | generatePlantUMLOutput (const QCString &baseName, const QCString &outDir, OutputFormat format) |
Convert a PlantUML file to an image. | |
Static Public Member Functions | |
static PlantumlManager & | instance () |
Private Member Functions | |
PlantumlManager () | |
void | insert (const std::string &key, const std::string &value, const QCString &outDir, OutputFormat format, const QCString &puContent, const QCString &srcFile, int srcLine) |
Private Attributes | |
FilesMap | m_pngPlantumlFiles |
FilesMap | m_svgPlantumlFiles |
FilesMap | m_epsPlantumlFiles |
ContentMap | m_pngPlantumlContent |
ContentMap | m_svgPlantumlContent |
ContentMap | m_epsPlantumlContent |
Singleton that manages plantuml relation actions.
Definition at line 40 of file plantuml.h.
using PlantumlManager::ContentMap = std::map< std::string, PlantumlContent > |
Definition at line 76 of file plantuml.h.
using PlantumlManager::FilesMap = std::map< std::string, StringVector > |
Definition at line 75 of file plantuml.h.
Plant UML output image formats.
Enumerator | |
---|---|
PUML_BITMAP | |
PUML_EPS | |
PUML_SVG |
Definition at line 44 of file plantuml.h.
|
private |
void PlantumlManager::generatePlantUMLOutput | ( | const QCString & | baseName, |
const QCString & | outDir, | ||
OutputFormat | format ) |
Convert a PlantUML file to an image.
[in] | baseName | the name of the generated file (as returned by writePlantUMLSource()) |
[in] | outDir | the directory to write the resulting image into. |
[in] | format | the image format to generate. |
Definition at line 127 of file plantuml.cpp.
References IndexList::addImageFile(), QCString::findRev(), Doxygen::indexList, QCString::mid(), PUML_BITMAP, PUML_EPS, and PUML_SVG.
Referenced by FlowChart::printUmlTree(), DocbookDocVisitor::startPlantUmlFile(), LatexDocVisitor::startPlantUmlFile(), DocbookDocVisitor::writePlantUMLFile(), HtmlDocVisitor::writePlantUMLFile(), LatexDocVisitor::writePlantUMLFile(), and RTFDocVisitor::writePlantUMLFile().
|
private |
Definition at line 372 of file plantuml.cpp.
References addPlantumlContent(), addPlantumlFiles(), m_epsPlantumlContent, m_epsPlantumlFiles, m_pngPlantumlContent, m_pngPlantumlFiles, m_svgPlantumlContent, m_svgPlantumlFiles, Debug::Plantuml, Debug::print(), print(), PUML_BITMAP, PUML_EPS, PUML_SVG, and qPrint().
Referenced by writePlantUMLSource().
|
static |
Definition at line 156 of file plantuml.cpp.
References PlantumlManager().
Referenced by generateOutput(), DocbookDocVisitor::operator()(), HtmlDocVisitor::operator()(), HtmlDocVisitor::operator()(), LatexDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), FlowChart::printUmlTree(), DocbookDocVisitor::startPlantUmlFile(), LatexDocVisitor::startPlantUmlFile(), DocbookDocVisitor::writePlantUMLFile(), HtmlDocVisitor::writePlantUMLFile(), LatexDocVisitor::writePlantUMLFile(), RTFDocVisitor::writePlantUMLFile(), and writePlantUMLSource().
void PlantumlManager::run | ( | ) |
Run plant UML tool for all images.
Definition at line 314 of file plantuml.cpp.
References m_epsPlantumlContent, m_epsPlantumlFiles, m_pngPlantumlContent, m_pngPlantumlFiles, m_svgPlantumlContent, m_svgPlantumlFiles, Debug::Plantuml, Debug::print(), PUML_BITMAP, PUML_EPS, PUML_SVG, and runPlantumlContent().
Referenced by generateOutput().
QCString PlantumlManager::writePlantUMLSource | ( | const QCString & | outDirArg, |
const QCString & | fileName, | ||
const QCString & | content, | ||
OutputFormat | format, | ||
const QCString & | engine, | ||
const QCString & | srcFile, | ||
int | srcLine, | ||
bool | inlineCode ) |
Write a PlantUML compatible file.
[in] | outDirArg | the output directory to write the file to. |
[in] | fileName | the name of the file. If empty a name will be chosen automatically. |
[in] | content | the contents of the PlantUML file. |
[in] | format | the image format to generate. |
[in] | engine | the plantuml engine to use. |
[in] | srcFile | the source file resulting in the write command. |
[in] | srcLine | the line number resulting in the write command. |
[in] | inlineCode | the code is coming from the \statuml ... \enduml (true ) command or from the \planumlfile command (false ) |
Definition at line 27 of file plantuml.cpp.
References QCString::at(), QCString::data(), QCString::findRev(), insert(), instance(), QCString::isEmpty(), isId(), QCString::left(), QCString::length(), Debug::Plantuml, QCString::prepend(), Debug::print(), PUML_BITMAP, PUML_EPS, PUML_SVG, qPrint(), qstrncmp(), QCString::reserve(), QCString::right(), QCString::setNum(), QCString::str(), and substitute().
Referenced by DocbookDocVisitor::operator()(), HtmlDocVisitor::operator()(), HtmlDocVisitor::operator()(), LatexDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), FlowChart::printUmlTree(), DocbookDocVisitor::startPlantUmlFile(), and LatexDocVisitor::startPlantUmlFile().
|
private |
Definition at line 92 of file plantuml.h.
|
private |
Definition at line 89 of file plantuml.h.
|
private |
Definition at line 90 of file plantuml.h.
|
private |
Definition at line 87 of file plantuml.h.
|
private |
Definition at line 91 of file plantuml.h.
|
private |
Definition at line 88 of file plantuml.h.