Doxygen
msc.h 文件参考
+ 此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

枚举

enum  MscOutputFormat { MSC_BITMAP, MSC_EPS, MSC_SVG }
 

函数

void writeMscGraphFromFile (const QCString &inFile, const QCString &outDir, const QCString &outFile, MscOutputFormat format, const QCString &srcFile, int srcLine)
 
QCString getMscImageMapFromFile (const QCString &inFile, const QCString &outDir, const QCString &relPath, const QCString &context, const QCString &srcFile, int srcLine)
 
void writeMscImageMapFromFile (TextStream &t, const QCString &inFile, const QCString &outDir, const QCString &relPath, const QCString &baseName, const QCString &context, MscOutputFormat format, const QCString &srcFile, int srcLine)
 

枚举类型说明

◆ MscOutputFormat

枚举值
MSC_BITMAP 
MSC_EPS 
MSC_SVG 

在文件 msc.h22 行定义.

函数说明

◆ getMscImageMapFromFile()

QCString getMscImageMapFromFile ( const QCString inFile,
const QCString outDir,
const QCString relPath,
const QCString context,
const QCString srcFile,
int  srcLine 
)

◆ writeMscGraphFromFile()

void writeMscGraphFromFile ( const QCString inFile,
const QCString outDir,
const QCString outFile,
MscOutputFormat  format,
const QCString srcFile,
int  srcLine 
)

在文件 msc.cpp92 行定义.

96 {
97  QCString absOutFile = outDir;
98  absOutFile+=Portable::pathSeparator();
99  absOutFile+=outFile;
100 
101  mscgen_format_t msc_format;
102  QCString imgName = absOutFile;
103  switch (format)
104  {
105  case MSC_BITMAP:
106  msc_format = mscgen_format_png;
107  imgName+=".png";
108  break;
109  case MSC_EPS:
110  msc_format = mscgen_format_eps;
111  imgName+=".eps";
112  break;
113  case MSC_SVG:
114  msc_format = mscgen_format_svg;
115  imgName+=".svg";
116  break;
117  default:
118  return;
119  }
120  int code;
121  if ((code=mscgen_generate(inFile.data(),imgName.data(),msc_format))!=0)
122  {
123  err_full(srcFile,srcLine,"Problems generating msc output (error=%s). Look for typos in you msc file %s\n",
124  mscgen_error2str(code),qPrint(inFile));
125  return;
126  }
127 
128  if ( (format==MSC_EPS) && (Config_getBool(USE_PDFLATEX)) )
129  {
130  QCString epstopdfArgs(maxCmdLine);
131  epstopdfArgs.sprintf("\"%s.eps\" --outfile=\"%s.pdf\"",
132  qPrint(absOutFile),qPrint(absOutFile));
134  if (Portable::system("epstopdf",epstopdfArgs)!=0)
135  {
136  err_full(srcFile,srcLine,"Problems running epstopdf when processing '%s.eps'. Check your TeX installation!\n",
137  qPrint(absOutFile));
138  }
140  }
141 
143 
144 }

引用了 IndexList::addImageFile(), Config_getBool, QCString::data(), err_full(), Doxygen::indexList, maxCmdLine, MSC_BITMAP, MSC_EPS, MSC_SVG, Portable::pathSeparator(), qPrint(), QCString::sprintf(), Portable::system(), Portable::sysTimerStart() , 以及 Portable::sysTimerStop().

被这些函数引用 DocbookDocVisitor::startMscFile(), LatexDocVisitor::startMscFile(), DocbookDocVisitor::writeMscFile(), HtmlDocVisitor::writeMscFile(), RTFDocVisitor::writeMscFile() , 以及 LatexDocVisitor::writeMscFile().

◆ writeMscImageMapFromFile()

void writeMscImageMapFromFile ( TextStream t,
const QCString inFile,
const QCString outDir,
const QCString relPath,
const QCString baseName,
const QCString context,
MscOutputFormat  format,
const QCString srcFile,
int  srcLine 
)

在文件 msc.cpp169 行定义.

178 {
179  QCString mapName = baseName+".map";
180  t << "<img src=\"" << relPath << baseName << ".";
181  switch (format)
182  {
183  case MSC_BITMAP:
184  t << "png";
185  break;
186  case MSC_EPS:
187  t << "eps";
188  break;
189  case MSC_SVG:
190  t << "svg";
191  break;
192  default:
193  t << "unknown";
194  }
195  QCString imap = getMscImageMapFromFile(inFile,outDir,relPath,context,format==MSC_SVG,srcFile,srcLine);
196  if (!imap.isEmpty())
197  {
198  t << "\" alt=\""
199  << baseName << "\" border=\"0\" usemap=\"#" << mapName << "\"/>\n";
200  t << "<map name=\"" << mapName << "\" id=\"" << mapName << "\">" << imap << "</map>\n";
201  }
202  else
203  {
204  t << "\" alt=\"" << baseName << "\" border=\"0\"/>\n";
205  }
206 }

引用了 getMscImageMapFromFile(), QCString::isEmpty(), MSC_BITMAP, MSC_EPS , 以及 MSC_SVG.

被这些函数引用 HtmlDocVisitor::writeMscFile().

Portable::pathSeparator
QCString pathSeparator()
Definition: portable.cpp:347
QCString::isEmpty
bool isEmpty() const
Returns TRUE iff the string is empty
Definition: qcstring.h:144
Doxygen::indexList
static IndexList * indexList
Definition: doxygen.h:114
MSC_BITMAP
@ MSC_BITMAP
Definition: msc.h:22
getMscImageMapFromFile
static QCString getMscImageMapFromFile(const QCString &inFile, const QCString &outDir, const QCString &relPath, const QCString &context, bool writeSVGMap, const QCString &srcFile, int srcLine)
Definition: msc.cpp:146
MSC_EPS
@ MSC_EPS
Definition: msc.h:22
maxCmdLine
static const int maxCmdLine
Definition: msc.cpp:30
Portable::sysTimerStart
void sysTimerStart()
Definition: portable.cpp:470
IndexList::addImageFile
void addImageFile(const QCString &name)
Definition: index.h:105
Portable::system
int system(const QCString &command, const QCString &args, bool commandHasConsole=true)
Definition: portable.cpp:42
MSC_SVG
@ MSC_SVG
Definition: msc.h:22
Config_getBool
#define Config_getBool(name)
Definition: config.h:33
qPrint
const char * qPrint(const char *s)
Definition: qcstring.h:589
err_full
void err_full(const QCString &file, int line, const char *fmt,...)
Definition: message.cpp:212
Portable::sysTimerStop
void sysTimerStop()
Definition: portable.cpp:475
QCString::data
const char * data() const
Returns a pointer to the contents of the string in the form of a 0-terminated C string
Definition: qcstring.h:153
QCString
This is an alternative implementation of QCString.
Definition: qcstring.h:108