Go to the source code of this file.
Plant UML output image formats
Enumerator |
---|
PUML_BITMAP |
|
PUML_EPS |
|
PUML_SVG |
|
Definition at line 22 of file plantuml.h.
void generatePlantUMLOutput |
( |
const char * |
baseName, |
|
|
const char * |
outDir, |
|
|
PlantUMLOutputFormat |
format |
|
) |
| |
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. |
Definition at line 54 of file plantuml.cpp.
62 char *
s=pumlIncludePathList.
first();
65 pumlArgs +=
"-Dplantuml.include.path=\"";
67 s = pumlIncludePathList.
next();
73 s = pumlIncludePathList.
next();
75 if (pumlIncludePathList.
first()) pumlArgs +=
"\" ";
76 pumlArgs +=
"-Djava.awt.headless=true -jar \""+plantumlJarPath+
"plantuml.jar\" ";
99 pumlArgs+=
"-charset UTF-8 ";
102 msg(
"Running PlantUML on generated file %s.pu\n",
baseName);
106 err(
"Problems running PlantUML. Verify that the command 'java -jar \"%splantuml.jar\" -h' works from the command line. Exit code: %d\n",
107 plantumlJarPath.
data(),exitCode);
121 err(
"Problems running epstopdf. Check your TeX installation! Exit code: %d\n",exitCode);
void portable_sysTimerStop()
static const int maxCmdLine
void msg(const char *fmt,...)
static bool format(QChar::Decomposition tag, QString &str, int index, int len)
#define Config_getList(val)
void portable_sysTimerStart()
const char * data() const
char portable_pathListSeparator()
#define Config_getString(val)
#define Config_getBool(val)
void err(const char *fmt,...)
The QFile class is an I/O device that operates on files.
int portable_system(const char *command, const char *args, bool commandHasConsole)
Write a PlantUML compatible file.
- Parameters
-
[in] | outDir | 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. |
- Returns
- The name of the generated file.
Definition at line 25 of file plantuml.cpp.
28 static int umlindex=1;
49 file.writeBlock( text, text.length() );
QCString left(uint len) const
int findRev(char c, int index=-1, bool cs=TRUE) const
QCString & prepend(const char *s)
const char * data() const
void err(const char *fmt,...)
The QFile class is an I/O device that operates on files.
QCString & setNum(short n)