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

浏览源代码.

函数

void generateDEF ()
 

函数说明

◆ generateDEF()

void generateDEF ( )

在文件 defgen.cpp526 行定义.

527 {
528  QCString outputDirectory = Config_getString(OUTPUT_DIRECTORY)+"/def";
529  Dir defDir(outputDirectory.str());
530  if (!defDir.exists() && !defDir.mkdir(outputDirectory.str()))
531  {
532  err("Could not create def directory in %s\n",qPrint(outputDirectory));
533  return;
534  }
535 
536  QCString fileName=outputDirectory+"/doxygen.def";
537  std::ofstream f(fileName.str(),std::ostream::out | std::ostream::binary);
538  if (!f.is_open())
539  {
540  err("Cannot open file %s for writing!\n",qPrint(fileName));
541  return;
542  }
543  TextStream t(&f);
544  t << "AutoGen Definitions dummy;\n";
545 
546  if (Doxygen::classLinkedMap->size()+
548  Doxygen::namespaceLinkedMap->size()>0)
549  {
550  for (const auto &cd : *Doxygen::classLinkedMap)
551  {
552  generateDEFForClass(cd.get(),t);
553  }
554  for (const auto &fn : *Doxygen::inputNameLinkedMap)
555  {
556  for (const auto &fd : *fn)
557  {
558  generateDEFForFile(fd.get(),t);
559  }
560  }
561  for (const auto &nd : *Doxygen::namespaceLinkedMap)
562  {
563  generateDEFForNamespace(nd.get(),t);
564  }
565  }
566  else
567  {
568  t << "dummy_value = true;\n";
569  }
570 }

引用了 Doxygen::classLinkedMap, Config_getString, err(), Dir::exists(), generateDEFForClass(), generateDEFForFile(), generateDEFForNamespace(), Doxygen::inputNameLinkedMap, Dir::mkdir(), Doxygen::namespaceLinkedMap, qPrint(), QCString::size() , 以及 QCString::str().

被这些函数引用 generateOutput().

Dir
Class representing a directory in the file system
Definition: dir.h:68
generateDEFForFile
static void generateDEFForFile(const FileDef *fd, TextStream &t)
Definition: defgen.cpp:494
QCString::str
std::string str() const
Definition: qcstring.h:442
err
void err(const char *fmt,...)
Definition: message.cpp:203
TextStream
Text streaming class that buffers data.
Definition: textstream.h:33
Doxygen::inputNameLinkedMap
static FileNameLinkedMap * inputNameLinkedMap
Definition: doxygen.h:88
generateDEFForNamespace
static void generateDEFForNamespace(const NamespaceDef *nd, TextStream &t)
Definition: defgen.cpp:466
qPrint
const char * qPrint(const char *s)
Definition: qcstring.h:589
Config_getString
#define Config_getString(name)
Definition: config.h:32
Doxygen::namespaceLinkedMap
static NamespaceLinkedMap * namespaceLinkedMap
Definition: doxygen.h:97
generateDEFForClass
static void generateDEFForClass(const ClassDef *cd, TextStream &t)
Definition: defgen.cpp:318
Doxygen::classLinkedMap
static ClassLinkedMap * classLinkedMap
Definition: doxygen.h:78
QCString
This is an alternative implementation of QCString.
Definition: qcstring.h:108