28 static int umlindex=1;
32 baseName = outDir+
"/inline_umlgraph_"+
QCString().setNum(umlindex++);
38 if (i!=-1) baseName = baseName.
left(i);
44 err(
"Could not open file %s for writing\n",baseName.
data());
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);
117 epstopdfArgs.
sprintf(
"\"%s.eps\" --outfile=\"%s.pdf\"",baseName,baseName);
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)
QCString writePlantUMLSource(const QCString &outDir, const QCString &fileName, const QCString &content)
#define Config_getList(val)
QCString left(uint len) const
int findRev(char c, int index=-1, bool cs=TRUE) const
void portable_sysTimerStart()
int writeBlock(const char *data, uint len)
QCString & prepend(const char *s)
const char * data() const
char portable_pathListSeparator()
#define Config_getString(val)
#define Config_getBool(val)
void generatePlantUMLOutput(const char *baseName, const char *outDir, PlantUMLOutputFormat format)
void err(const char *fmt,...)
The QFile class is an I/O device that operates on files.
QCString & sprintf(const char *format,...)
Portable versions of functions that are platform dependent.
int portable_system(const char *command, const char *args, bool commandHasConsole)