The PlantumlManager
Class Reference
Singleton that manages plantuml relation actions. More...
Declaration
Included Headers
Public Member Typedefs Index
using | FilesMap = std::map< std::string, StringVector > |
using | ContentMap = std::map< std::string, PlantumlContent > |
Enumerations Index
enum | OutputFormat { ... } |
Plant UML output image formats. More... | |
Private Constructors Index
PlantumlManager () | |
Public Member Functions Index
void | run () |
Run plant UML tool for all images. More... | |
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. More... | |
void | generatePlantUMLOutput (const QCString &baseName, const QCString &outDir, OutputFormat format) |
Convert a PlantUML file to an image. More... | |
Private Member Functions Index
void | insert (const std::string &key, const std::string &value, const QCString &outDir, OutputFormat format, const QCString &puContent, const QCString &srcFile, int srcLine) |
Private Member Attributes Index
FilesMap | m_pngPlantumlFiles |
FilesMap | m_svgPlantumlFiles |
FilesMap | m_epsPlantumlFiles |
ContentMap | m_pngPlantumlContent |
ContentMap | m_svgPlantumlContent |
ContentMap | m_epsPlantumlContent |
Public Static Functions Index
static PlantumlManager & | instance () |
Description
Singleton that manages plantuml relation actions.
Definition at line 40 of file plantuml.h.
Public Member Typedefs
ContentMap
|
Definition at line 76 of file plantuml.h.
FilesMap
|
Definition at line 75 of file plantuml.h.
Enumerations
OutputFormat
|
Plant UML output image formats.
Definition at line 44 of file plantuml.h.
Private Constructors
PlantumlManager()
|
Declaration at line 78 of file plantuml.h, definition at line 163 of file plantuml.cpp.
Referenced by instance.
Public Member Functions
generatePlantUMLOutput()
|
Convert a PlantUML file to an image.
- Parameters
-
[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.
Declaration at line 73 of file plantuml.h, definition at line 128 of file plantuml.cpp.
References 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.
run()
|
Run plant UML tool for all images.
Declaration at line 49 of file plantuml.h, definition at line 315 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.
writePlantUMLSource()
|
Write a PlantUML compatible file.
- Parameters
-
[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)
- Returns
The name of the generated file.
Declaration at line 63 of file plantuml.h, definition at line 28 of file plantuml.cpp.
References QCString::at, QCString::data, QCString::findRev, insert, instance, QCString::isEmpty, isId, QCString::left, QCString::length, literal_at, Debug::Plantuml, QCString::prepend, Debug::print, PUML_BITMAP, PUML_EPS, PUML_SVG, 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 Member Functions
insert()
|
Declaration at line 79 of file plantuml.h, definition at line 373 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 and PUML_SVG.
Referenced by writePlantUMLSource.
Private Member Attributes
m_epsPlantumlContent
|
Definition at line 92 of file plantuml.h.
m_epsPlantumlFiles
|
Definition at line 89 of file plantuml.h.
m_pngPlantumlContent
|
Definition at line 90 of file plantuml.h.
m_pngPlantumlFiles
|
Definition at line 87 of file plantuml.h.
m_svgPlantumlContent
|
Definition at line 91 of file plantuml.h.
m_svgPlantumlFiles
|
Definition at line 88 of file plantuml.h.
Public Static Functions
instance()
| static |
Declaration at line 46 of file plantuml.h, definition at line 157 of file plantuml.cpp.
Reference 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.
The documentation for this class was generated from the following files:
Generated via doxygen2docusaurus by Doxygen 1.14.0.