Doxygen
LayoutParser类 参考
+ LayoutParser 的协作图:

Public 成员函数

void setDocumentLocator (const XMLLocator *locator)
 
void error (const std::string &fileName, int lineNr, const std::string &msg)
 
void startElement (const std::string &name, const XMLHandlers::Attributes &attrib)
 
void endElement (const std::string &name)
 
void startSimpleEntry (LayoutDocEntry::Kind k, const XMLHandlers::Attributes &attrib)
 
void startSectionEntry (LayoutDocEntry::Kind k, const XMLHandlers::Attributes &attrib, const QCString &title)
 
void startMemberDeclEntry (const XMLHandlers::Attributes &attrib, MemberListType type, const QCString &title, const QCString &subscript)
 
void startMemberDefEntry (const XMLHandlers::Attributes &attrib, MemberListType type, const QCString &title, const QCString &)
 
void startLayout (const XMLHandlers::Attributes &)
 
void startNavIndex (const XMLHandlers::Attributes &)
 
void endNavIndex ()
 
void startNavEntry (const XMLHandlers::Attributes &attrib)
 
void endNavEntry ()
 
void startClass (const XMLHandlers::Attributes &)
 
void endClass ()
 
void startNamespace (const XMLHandlers::Attributes &)
 
void endNamespace ()
 
void startConcept (const XMLHandlers::Attributes &)
 
void endConcept ()
 
void startFile (const XMLHandlers::Attributes &)
 
void endFile ()
 
void startGroup (const XMLHandlers::Attributes &)
 
void endGroup ()
 
void startDirectory (const XMLHandlers::Attributes &)
 
void endDirectory ()
 
void startMemberDef (const XMLHandlers::Attributes &)
 
void endMemberDef ()
 
void startMemberDecl (const XMLHandlers::Attributes &)
 
void endMemberDecl ()
 

静态 Public 成员函数

static LayoutParserinstance ()
 

Private 成员函数

 LayoutParser ()
 
 ~LayoutParser ()
 

Private 属性

QCString m_scope
 
int m_part = -1
 
LayoutNavEntrym_rootNav = 0
 
bool m_invalidEntry = false
 
const XMLLocatorm_locator = nullptr
 

静态 Private 属性

static int m_userGroupCount =0
 

详细描述

在文件 layout.cpp163 行定义.

构造及析构函数说明

◆ LayoutParser()

LayoutParser::LayoutParser ( )
inlineprivate

在文件 layout.cpp701 行定义.

701 { }

被这些函数引用 instance().

◆ ~LayoutParser()

LayoutParser::~LayoutParser ( )
inlineprivate

在文件 layout.cpp702 行定义.

702 { delete m_rootNav; }

引用了 m_rootNav.

成员函数说明

◆ endClass()

void LayoutParser::endClass ( )
inline

在文件 layout.cpp580 行定义.

581  {
582  m_scope="";
583  m_part = -1;
584  }

引用了 m_part , 以及 m_scope.

◆ endConcept()

void LayoutParser::endConcept ( )
inline

在文件 layout.cpp606 行定义.

607  {
608  m_scope="";
609  m_part = -1;
610  }

引用了 m_part , 以及 m_scope.

◆ endDirectory()

void LayoutParser::endDirectory ( )
inline

在文件 layout.cpp645 行定义.

646  {
647  m_scope="";
648  m_part = -1;
649  }

引用了 m_part , 以及 m_scope.

◆ endElement()

void LayoutParser::endElement ( const std::string &  name)

在文件 layout.cpp1518 行定义.

1519 {
1520  //printf("endElement [%s]::[%s]\n",qPrint(m_scope),qPrint(name));
1521  auto it=g_elementHandlers.end();
1522 
1523  if (!m_scope.isEmpty() && m_scope.right(static_cast<uint>(name.length())+1)==name+"/")
1524  { // element ends current scope
1525  it = g_elementHandlers.find(m_scope.left(m_scope.length()-1).str());
1526  }
1527  else // continue with current scope
1528  {
1529  it = g_elementHandlers.find(m_scope.str()+name);
1530  }
1531  if (it!=g_elementHandlers.end())
1532  {
1533  it->second.endCb(*this);
1534  }
1535 }

引用了 g_elementHandlers, QCString::isEmpty(), QCString::left(), QCString::length(), m_scope, QCString::right() , 以及 QCString::str().

被这些函数引用 LayoutDocManager::init() , 以及 LayoutDocManager::parse().

◆ endFile()

void LayoutParser::endFile ( )
inline

在文件 layout.cpp619 行定义.

620  {
621  m_scope="";
622  m_part = -1;
623  }

引用了 m_part , 以及 m_scope.

◆ endGroup()

void LayoutParser::endGroup ( )
inline

在文件 layout.cpp632 行定义.

633  {
634  m_scope="";
635  m_part = -1;
636  }

引用了 m_part , 以及 m_scope.

◆ endMemberDecl()

void LayoutParser::endMemberDecl ( )
inline

在文件 layout.cpp685 行定义.

686  {
687  int i=m_scope.findRev("memberdecl/");
688  if (i!=-1)
689  {
690  m_scope=m_scope.left(i);
691  if (m_part!=-1)
692  {
695  }
696  }
697  }

引用了 LayoutDocManager::addEntry(), QCString::findRev(), LayoutDocManager::instance(), QCString::left(), m_part, m_scope , 以及 LayoutDocEntry::MemberDeclEnd.

◆ endMemberDef()

void LayoutParser::endMemberDef ( )
inline

在文件 layout.cpp661 行定义.

662  {
663  int i=m_scope.findRev("memberdef/");
664  if (i!=-1)
665  {
666  m_scope=m_scope.left(i);
667  if (m_part!=-1)
668  {
671  }
672  }
673  }

引用了 LayoutDocManager::addEntry(), QCString::findRev(), LayoutDocManager::instance(), QCString::left(), m_part, m_scope , 以及 LayoutDocEntry::MemberDefEnd.

◆ endNamespace()

void LayoutParser::endNamespace ( )
inline

在文件 layout.cpp593 行定义.

594  {
595  m_scope="";
596  m_part = -1;
597  }

引用了 m_part , 以及 m_scope.

◆ endNavEntry()

void LayoutParser::endNavEntry ( )
inline

在文件 layout.cpp566 行定义.

567  {
568  // set the root back to the parent
571  }

引用了 FALSE, m_invalidEntry, m_rootNav , 以及 LayoutNavEntry::parent().

◆ endNavIndex()

void LayoutParser::endNavIndex ( )
inline

在文件 layout.cpp253 行定义.

254  {
255  m_scope="";
257  {
258  // no MainPage node... add one as the first item of the root node...
260  /*Config_getBool(GENERATE_TREEVIEW) ? "main" :*/ "index",
262  }
263  }

引用了 LayoutNavEntry::find(), m_rootNav, m_scope, LayoutNavEntry::MainPage, theTranslator, Translator::trMainPage() , 以及 TRUE.

◆ error()

void LayoutParser::error ( const std::string &  fileName,
int  lineNr,
const std::string &  msg 
)
inline

在文件 layout.cpp177 行定义.

178  {
179  ::warn(fileName.c_str(),lineNr,"%s",msg.c_str());
180  }

引用了 msg() , 以及 warn().

被这些函数引用 LayoutDocManager::init() , 以及 LayoutDocManager::parse().

◆ instance()

static LayoutParser& LayoutParser::instance ( )
inlinestatic

在文件 layout.cpp166 行定义.

167  {
168  static LayoutParser *theInstance = new LayoutParser;
169  return *theInstance;
170  }

引用了 LayoutParser().

被这些函数引用 LayoutDocManager::init() , 以及 LayoutDocManager::parse().

◆ setDocumentLocator()

void LayoutParser::setDocumentLocator ( const XMLLocator locator)
inline

在文件 layout.cpp173 行定义.

174  {
175  m_locator = locator;
176  }

引用了 m_locator.

被这些函数引用 LayoutDocManager::init() , 以及 LayoutDocManager::parse().

◆ startClass()

void LayoutParser::startClass ( const XMLHandlers::Attributes )
inline

◆ startConcept()

void LayoutParser::startConcept ( const XMLHandlers::Attributes )
inline

◆ startDirectory()

void LayoutParser::startDirectory ( const XMLHandlers::Attributes )
inline

◆ startElement()

void LayoutParser::startElement ( const std::string &  name,
const XMLHandlers::Attributes attrib 
)

在文件 layout.cpp1502 行定义.

1503 {
1504  //printf("startElement [%s]::[%s]\n",qPrint(m_scope),qPrint(name));
1505  auto it = g_elementHandlers.find(m_scope.str()+name);
1506  if (it!=g_elementHandlers.end())
1507  {
1508  it->second.startCb(*this,attrib);
1509  }
1510  else
1511  {
1512  std::string fileName = m_locator->fileName();
1513  ::warn(fileName.c_str(),m_locator->lineNr(),"Unexpected start tag '%s' found in scope='%s'!\n",
1514  qPrint(name),qPrint(m_scope));
1515  }
1516 }

引用了 XMLLocator::fileName(), g_elementHandlers, XMLLocator::lineNr(), m_locator, m_scope, qPrint(), QCString::str() , 以及 warn().

被这些函数引用 LayoutDocManager::init() , 以及 LayoutDocManager::parse().

◆ startFile()

void LayoutParser::startFile ( const XMLHandlers::Attributes )
inline

◆ startGroup()

void LayoutParser::startGroup ( const XMLHandlers::Attributes )
inline

◆ startLayout()

void LayoutParser::startLayout ( const XMLHandlers::Attributes )
inline

在文件 layout.cpp242 行定义.

243  {
244  }

◆ startMemberDecl()

void LayoutParser::startMemberDecl ( const XMLHandlers::Attributes )
inline

◆ startMemberDeclEntry()

void LayoutParser::startMemberDeclEntry ( const XMLHandlers::Attributes attrib,
MemberListType  type,
const QCString title,
const QCString subscript 
)
inline

在文件 layout.cpp212 行定义.

214  {
215  //QCString visible = convertToQCString(XMLHandlers::value(attrib,"visible"));
216  //bool isVisible = visible.isEmpty() || (visible!="no" && visible!="0");
217  QCString userTitle = XMLHandlers::value(attrib,"title");
218  QCString userSubscript = XMLHandlers::value(attrib,"subtitle");
219  if (userTitle.isEmpty()) userTitle = title;
220  if (userSubscript.isEmpty()) userSubscript = subscript;
221  //printf("memberdecl: %s\n",qPrint(userTitle));
222  if (m_part!=-1 /*&& isVisible*/)
223  {
225  new LayoutDocEntryMemberDecl(type,userTitle,userSubscript));
226  }
227  }

引用了 LayoutDocManager::addEntry(), LayoutDocManager::instance(), QCString::isEmpty(), m_part , 以及 XMLHandlers::value().

◆ startMemberDef()

void LayoutParser::startMemberDef ( const XMLHandlers::Attributes )
inline

◆ startMemberDefEntry()

void LayoutParser::startMemberDefEntry ( const XMLHandlers::Attributes attrib,
MemberListType  type,
const QCString title,
const QCString  
)
inline

在文件 layout.cpp229 行定义.

231  {
232  QCString userTitle = XMLHandlers::value(attrib,"title");
233  if (userTitle.isEmpty()) userTitle = title;
234  //printf("memberdef: %s\n",qPrint(userTitle));
235  if (m_part!=-1 /*&& isVisible*/)
236  {
238  new LayoutDocEntryMemberDef(type,userTitle));
239  }
240  }

引用了 LayoutDocManager::addEntry(), LayoutDocManager::instance(), QCString::isEmpty(), m_part , 以及 XMLHandlers::value().

◆ startNamespace()

void LayoutParser::startNamespace ( const XMLHandlers::Attributes )
inline

◆ startNavEntry()

void LayoutParser::startNavEntry ( const XMLHandlers::Attributes attrib)
inline

在文件 layout.cpp265 行定义.

266  {
267  static bool javaOpt = Config_getBool(OPTIMIZE_OUTPUT_JAVA);
268  static bool fortranOpt = Config_getBool(OPTIMIZE_FOR_FORTRAN);
269  static bool vhdlOpt = Config_getBool(OPTIMIZE_OUTPUT_VHDL);
270  static bool sliceOpt = Config_getBool(OPTIMIZE_OUTPUT_SLICE);
271  static bool hasGraphicalHierarchy = Config_getBool(HAVE_DOT) &&
272  Config_getBool(GRAPHICAL_HIERARCHY);
273  static bool extractAll = Config_getBool(EXTRACT_ALL);
274  static struct NavEntryMap
275  {
276  const char *typeStr; // type attribute name in the XML file
277  LayoutNavEntry::Kind kind; // corresponding enum name
278  QCString mainName; // default title for an item if it has children
279  QCString subName; // optional name for an item if it is rendered as a child
280  QCString intro; // introduction text to be put on the index page
281  QCString baseFile; // base name of the file containing the index page
282  } mapping[] =
283  {
284  { "mainpage",
287  QCString(),
288  QCString(),
289  "index"
290  },
291  { "pages",
294  QCString(),
296  "pages"
297  },
298  { "modules",
301  QCString(),
303  "modules"
304  },
305  { "namespaces",
307  javaOpt || vhdlOpt ? theTranslator->trPackages() : fortranOpt || sliceOpt ? theTranslator->trModules() : theTranslator->trNamespaces(),
308  javaOpt || vhdlOpt ? theTranslator->trPackages() : fortranOpt || sliceOpt ? theTranslator->trModulesList() : theTranslator->trNamespaceList(),
309  javaOpt || vhdlOpt ? theTranslator->trPackageListDescription() : fortranOpt || sliceOpt ? theTranslator->trModulesListDescription(extractAll) : theTranslator->trNamespaceListDescription(extractAll),
310  "namespaces"
311  },
312  { "namespacelist",
314  javaOpt || vhdlOpt ? theTranslator->trPackages() : fortranOpt || sliceOpt ? theTranslator->trModulesList() : theTranslator->trNamespaceList(),
315  QCString(),
316  javaOpt || vhdlOpt ? theTranslator->trPackageListDescription() : fortranOpt || sliceOpt ? theTranslator->trModulesListDescription(extractAll) : theTranslator->trNamespaceListDescription(extractAll),
317  "namespaces"
318  },
319  { "namespacemembers",
321  javaOpt || vhdlOpt ? theTranslator->trPackageMembers() : fortranOpt || sliceOpt ? theTranslator->trModulesMembers() : theTranslator->trNamespaceMembers(),
322  QCString(),
323  fortranOpt || sliceOpt ? theTranslator->trModulesMemberDescription(extractAll) : theTranslator->trNamespaceMemberDescription(extractAll),
324  "namespacemembers"
325  },
326  { "concepts",
328  theTranslator->trConcept(true,false),
331  "concepts"
332  },
333  { "classindex",
336  QCString(),
337  QCString(),
338  "classes"
339  },
340  { "classes",
345  "annotated"
346  },
347  { "classlist",
350  QCString(),
352  "annotated"
353  },
354  { "hierarchy",
357  QCString(),
359  hasGraphicalHierarchy ? "inherits" : "hierarchy"
360  },
361  { "classmembers",
364  QCString(),
366  "functions"
367  },
368  { "interfaceindex",
371  QCString(),
372  QCString(),
373  "interfaces"
374  },
375  { "interfaces",
380  "annotatedinterfaces"
381  },
382  { "interfacelist",
385  QCString(),
387  "annotatedinterfaces"
388  },
389  { "interfacehierarchy",
392  QCString(),
394  hasGraphicalHierarchy ? "interfaceinherits" : "interfacehierarchy"
395  },
396  { "structindex",
399  QCString(),
400  QCString(),
401  "structs"
402  },
403  { "structs",
408  "annotatedstructs"
409  },
410  { "structlist",
413  QCString(),
415  "annotatedstructs"
416  },
417  { "exceptionindex",
420  QCString(),
421  QCString(),
422  "exceptions"
423  },
424  { "exceptions",
429  "annotatedexceptions"
430  },
431  { "exceptionlist",
434  QCString(),
436  "annotatedexceptions"
437  },
438  { "exceptionhierarchy",
441  QCString(),
443  hasGraphicalHierarchy ? "exceptioninherits" : "exceptionhierarchy"
444  },
445  { "files",
450  "files"
451  },
452  { "filelist",
455  QCString(),
457  "files"
458  },
459  { "globals",
462  QCString(),
464  "globals"
465  },
466  //{ "dirs",
467  // LayoutNavEntry::Dirs,
468  // theTranslator->trDirectories(),
469  // QCString(),
470  // theTranslator->trDirDescription(),
471  // "dirs"
472  //},
473  { "examples",
476  QCString(),
478  "examples"
479  },
480  { "user",
482  QCString(),
483  QCString(),
484  QCString(),
485  "user"
486  },
487  { "usergroup",
489  QCString(),
490  QCString(),
491  QCString(),
492  "usergroup"
493  },
494  { 0, // end of list
496  QCString(),
497  QCString(),
498  QCString(),
499  QCString()
500  }
501  };
503  // find type in the table
504  int i=0;
505  QCString type = XMLHandlers::value(attrib,"type");
506  while (mapping[i].typeStr)
507  {
508  if (mapping[i].typeStr==type)
509  {
510  kind = mapping[i].kind;
511  break;
512  }
513  i++;
514  }
515  if (mapping[i].typeStr==0)
516  {
517  std::string fileName = m_locator->fileName();
518  if (type.isEmpty())
519  {
520  ::warn(fileName.c_str(),m_locator->lineNr(),"an entry tag within a navindex has no type attribute! Check your layout file!\n");
521  }
522  else
523  {
524  ::warn(fileName.c_str(),m_locator->lineNr(),"the type '%s' is not supported for the entry tag within a navindex! Check your layout file!\n",qPrint(type));
525  }
527  return;
528  }
529  QCString baseFile = mapping[i].baseFile;
530  QCString title = XMLHandlers::value(attrib,"title");
531  bool isVisible = elemIsVisible(attrib);
532  if (title.isEmpty()) // use default title
533  {
534  title = mapping[i].mainName; // use title for main row
535  if (m_rootNav!=LayoutDocManager::instance().rootNavEntry() && !mapping[i].subName.isEmpty())
536  {
537  title = mapping[i].subName; // if this is a child of another row, use the subName if available
538  // this is mainly done to get compatible naming with older versions.
539  }
540  }
541  QCString intro = XMLHandlers::value(attrib,"intro");
542  if (intro.isEmpty()) // use default intro text
543  {
544  intro = mapping[i].intro;
545  }
546  QCString url = XMLHandlers::value(attrib,"url");
547  if (mapping[i].kind==LayoutNavEntry::User && !url.isEmpty())
548  {
549  baseFile=url;
550  }
551  else if (kind==LayoutNavEntry::UserGroup)
552  {
553  if (!url.isEmpty())
554  {
555  baseFile=url;
556  }
557  else
558  {
559  baseFile+=QCString().sprintf("%d",m_userGroupCount++);
560  }
561  }
562  // create new item and make it the new root
563  m_rootNav = new LayoutNavEntry(m_rootNav,kind,isVisible,baseFile,title,intro);
564  }

引用了 LayoutNavEntry::Classes, LayoutNavEntry::ClassHierarchy, LayoutNavEntry::ClassIndex, LayoutNavEntry::ClassList, LayoutNavEntry::ClassMembers, LayoutNavEntry::Concepts, Config_getBool, elemIsVisible(), LayoutNavEntry::Examples, LayoutNavEntry::ExceptionHierarchy, LayoutNavEntry::ExceptionIndex, LayoutNavEntry::ExceptionList, LayoutNavEntry::Exceptions, FALSE, LayoutNavEntry::FileGlobals, LayoutNavEntry::FileList, XMLLocator::fileName(), LayoutNavEntry::Files, LayoutDocManager::instance(), LayoutNavEntry::InterfaceHierarchy, LayoutNavEntry::InterfaceIndex, LayoutNavEntry::InterfaceList, LayoutNavEntry::Interfaces, QCString::isEmpty(), XMLLocator::lineNr(), m_invalidEntry, m_locator, m_rootNav, m_userGroupCount, LayoutNavEntry::MainPage, LayoutNavEntry::Modules, LayoutNavEntry::NamespaceList, LayoutNavEntry::NamespaceMembers, LayoutNavEntry::Namespaces, LayoutNavEntry::Pages, qPrint(), QCString::sprintf(), LayoutNavEntry::StructIndex, LayoutNavEntry::StructList, LayoutNavEntry::Structs, theTranslator, Translator::trClasses(), Translator::trClassHierarchy(), Translator::trClassHierarchyDescription(), Translator::trCompoundIndex(), Translator::trCompoundList(), Translator::trCompoundListDescription(), Translator::trCompoundListDescriptionFortran(), Translator::trCompoundListFortran(), Translator::trCompoundMembers(), Translator::trCompoundMembersDescription(), Translator::trCompoundMembersDescriptionFortran(), Translator::trCompoundMembersFortran(), Translator::trConcept(), Translator::trConceptList(), Translator::trConceptListDescription(), Translator::trDataTypes(), Translator::trDesignUnitHierarchy(), Translator::trDesignUnitList(), Translator::trDesignUnitListDescription(), Translator::trDesignUnitMembers(), Translator::trDesignUnits(), Translator::trExamples(), Translator::trExamplesDescription(), Translator::trExceptionHierarchy(), Translator::trExceptionHierarchyDescription(), Translator::trExceptionIndex(), Translator::trExceptionList(), Translator::trExceptionListDescription(), Translator::trExceptions(), Translator::trFile(), Translator::trFileList(), Translator::trFileListDescription(), Translator::trFileMembers(), Translator::trFileMembersDescription(), Translator::trInterfaceHierarchy(), Translator::trInterfaceHierarchyDescription(), Translator::trInterfaceIndex(), Translator::trInterfaceList(), Translator::trInterfaceListDescription(), Translator::trMainPage(), Translator::trModules(), Translator::trModulesDescription(), Translator::trModulesList(), Translator::trModulesListDescription(), Translator::trModulesMemberDescription(), Translator::trModulesMembers(), Translator::trNamespaceList(), Translator::trNamespaceListDescription(), Translator::trNamespaceMemberDescription(), Translator::trNamespaceMembers(), Translator::trNamespaces(), Translator::trPackageListDescription(), Translator::trPackageMembers(), Translator::trPackages(), Translator::trRelatedPages(), Translator::trRelatedPagesDescription(), Translator::trSliceInterfaces(), Translator::trStructIndex(), Translator::trStructList(), Translator::trStructListDescription(), Translator::trStructs(), TRUE, LayoutNavEntry::User, LayoutNavEntry::UserGroup, XMLHandlers::value() , 以及 warn().

◆ startNavIndex()

void LayoutParser::startNavIndex ( const XMLHandlers::Attributes )
inline

在文件 layout.cpp246 行定义.

247  {
248  m_scope="navindex/";
250  if (m_rootNav) m_rootNav->clear();
251  }

引用了 LayoutNavEntry::clear(), LayoutDocManager::instance(), m_rootNav, m_scope , 以及 LayoutDocManager::rootNavEntry().

◆ startSectionEntry()

void LayoutParser::startSectionEntry ( LayoutDocEntry::Kind  k,
const XMLHandlers::Attributes attrib,
const QCString title 
)
inline

在文件 layout.cpp196 行定义.

198  {
199  bool isVisible = elemIsVisible(attrib);
200  QCString userTitle = XMLHandlers::value(attrib,"title");
201  //printf("startSectionEntry: title='%s' userTitle='%s'\n",
202  // qPrint(title),qPrint(userTitle));
203  if (userTitle.isEmpty()) userTitle = title;
204  if (m_part!=-1 && isVisible)
205  {
207  new LayoutDocEntrySection(k,userTitle));
208  }
209  }

引用了 LayoutDocManager::addEntry(), elemIsVisible(), LayoutDocManager::instance(), QCString::isEmpty(), m_part , 以及 XMLHandlers::value().

◆ startSimpleEntry()

void LayoutParser::startSimpleEntry ( LayoutDocEntry::Kind  k,
const XMLHandlers::Attributes attrib 
)
inline

在文件 layout.cpp184 行定义.

185  {
186  bool isVisible = elemIsVisible(attrib);
187  if (m_part!=-1 && isVisible)
188  {
190  new LayoutDocEntrySimple(k));
191  }
192  }

引用了 LayoutDocManager::addEntry(), elemIsVisible(), LayoutDocManager::instance() , 以及 m_part.

类成员变量说明

◆ m_invalidEntry

bool LayoutParser::m_invalidEntry = false
private

在文件 layout.cpp707 行定义.

被这些函数引用 endNavEntry() , 以及 startNavEntry().

◆ m_locator

const XMLLocator* LayoutParser::m_locator = nullptr
private

在文件 layout.cpp709 行定义.

被这些函数引用 setDocumentLocator(), startElement() , 以及 startNavEntry().

◆ m_part

◆ m_rootNav

LayoutNavEntry* LayoutParser::m_rootNav = 0
private

在文件 layout.cpp706 行定义.

被这些函数引用 endNavEntry(), endNavIndex(), startNavEntry(), startNavIndex() , 以及 ~LayoutParser().

◆ m_scope

◆ m_userGroupCount

int LayoutParser::m_userGroupCount =0
staticprivate

在文件 layout.cpp708 行定义.

被这些函数引用 startNavEntry().


该类的文档由以下文件生成:
LayoutNavEntry::Interfaces
@ Interfaces
Definition: layout.h:142
LayoutParser::m_locator
const XMLLocator * m_locator
Definition: layout.cpp:709
LayoutNavEntry
Base class for the layout of a navigation item at the top of the HTML pages.
Definition: layout.h:125
LayoutDocEntryMemberDecl
Represents of a member declaration list with configurable title and subtitle.
Definition: layout.h:94
Translator::trClassHierarchyDescription
virtual QCString trClassHierarchyDescription()=0
Translator::trCompoundMembers
virtual QCString trCompoundMembers()=0
Translator::trModulesDescription
virtual QCString trModulesDescription()=0
LayoutDocManager::Directory
@ Directory
Definition: layout.h:203
LayoutDocManager::rootNavEntry
LayoutNavEntry * rootNavEntry() const
returns the (invisible) root of the navigation tree.
Definition: layout.cpp:1585
LayoutNavEntry::ExceptionList
@ ExceptionList
Definition: layout.h:150
Translator::trFileMembersDescription
virtual QCString trFileMembersDescription(bool extractAll)=0
Translator::trFileList
virtual QCString trFileList()=0
LayoutNavEntry::Kind
Kind
Definition: layout.h:128
QCString::length
uint length() const
Returns the length of the string, not counting the 0-terminator.
Definition: qcstring.h:147
XMLLocator::fileName
virtual std::string fileName() const =0
LayoutDocManager::File
@ File
Definition: layout.h:203
QCString::findRev
int findRev(char c, int index=-1, bool cs=TRUE) const
Definition: qcstring.cpp:86
Translator::trExceptions
virtual QCString trExceptions()=0
QCString::isEmpty
bool isEmpty() const
Returns TRUE iff the string is empty
Definition: qcstring.h:144
LayoutNavEntry::find
LayoutNavEntry * find(LayoutNavEntry::Kind k, const QCString &file=QCString()) const
Definition: layout.cpp:107
LayoutNavEntry::FileList
@ FileList
Definition: layout.h:154
LayoutNavEntry::User
@ User
Definition: layout.h:157
Translator::trCompoundListDescriptionFortran
virtual QCString trCompoundListDescriptionFortran()=0
Translator::trModules
virtual QCString trModules()=0
LayoutParser
Definition: layout.cpp:163
LayoutParser::m_rootNav
LayoutNavEntry * m_rootNav
Definition: layout.cpp:706
LayoutDocEntry::MemberDeclStart
@ MemberDeclStart
Definition: layout.h:37
LayoutNavEntry::StructList
@ StructList
Definition: layout.h:147
Translator::trPackageListDescription
virtual QCString trPackageListDescription()=0
Translator::trExceptionHierarchyDescription
virtual QCString trExceptionHierarchyDescription()=0
QCString::str
std::string str() const
Definition: qcstring.h:442
Translator::trNamespaceMemberDescription
virtual QCString trNamespaceMemberDescription(bool extractAll)=0
LayoutNavEntry::UserGroup
@ UserGroup
Definition: layout.h:158
Translator::trRelatedPages
virtual QCString trRelatedPages()=0
elemIsVisible
static bool elemIsVisible(const XMLHandlers::Attributes &attrib, bool defVal=TRUE)
Definition: layout.cpp:80
Translator::trInterfaceHierarchy
virtual QCString trInterfaceHierarchy()=0
LayoutNavEntry::Exceptions
@ Exceptions
Definition: layout.h:149
LayoutDocManager::Concept
@ Concept
Definition: layout.h:203
LayoutDocManager::Class
@ Class
Definition: layout.h:203
Translator::trRelatedPagesDescription
virtual QCString trRelatedPagesDescription()=0
Translator::trConcept
virtual QCString trConcept(bool first_capital, bool singular)=0
LayoutDocEntry::MemberDefEnd
@ MemberDefEnd
Definition: layout.h:38
warn
void warn(const QCString &file, int line, const char *fmt,...)
Definition: message.cpp:151
Translator::trDesignUnitMembers
virtual QCString trDesignUnitMembers()=0
LayoutNavEntry::StructIndex
@ StructIndex
Definition: layout.h:148
LayoutDocManager::LayoutPart
LayoutPart
Definition: layout.h:201
LayoutDocManager::Group
@ Group
Definition: layout.h:203
XMLLocator::lineNr
virtual int lineNr() const =0
Translator::trExceptionList
virtual QCString trExceptionList()=0
LayoutNavEntry::ExceptionHierarchy
@ ExceptionHierarchy
Definition: layout.h:152
LayoutDocManager::Namespace
@ Namespace
Definition: layout.h:203
Translator::trCompoundMembersFortran
virtual QCString trCompoundMembersFortran()=0
uint
unsigned uint
Definition: qcstring.h:40
Translator::trNamespaces
virtual QCString trNamespaces()=0
LayoutNavEntry::NamespaceMembers
@ NamespaceMembers
Definition: layout.h:135
LayoutParser::m_userGroupCount
static int m_userGroupCount
Definition: layout.cpp:708
LayoutDocEntryMemberDef
Represents of a member definition list with configurable title.
Definition: layout.h:110
LayoutNavEntry::Files
@ Files
Definition: layout.h:153
LayoutDocEntrySimple
Represents of a piece of a documentation page without configurable parts
Definition: layout.h:75
g_elementHandlers
static const std::map< std::string, ElementCallbacks > g_elementHandlers
Definition: layout.cpp:769
Translator::trExceptionHierarchy
virtual QCString trExceptionHierarchy()=0
Translator::trPackageMembers
virtual QCString trPackageMembers()=0
QCString::left
QCString left(size_t len) const
Definition: qcstring.h:212
LayoutNavEntry::Modules
@ Modules
Definition: layout.h:132
Translator::trStructListDescription
virtual QCString trStructListDescription()=0
LayoutDocEntrySection
Definition: layout.h:84
LayoutDocEntry::MemberDeclEnd
@ MemberDeclEnd
Definition: layout.h:37
Translator::trExamplesDescription
virtual QCString trExamplesDescription()=0
Translator::trClassHierarchy
virtual QCString trClassHierarchy()=0
LayoutDocEntry::MemberDefStart
@ MemberDefStart
Definition: layout.h:38
LayoutParser::m_scope
QCString m_scope
Definition: layout.cpp:704
theTranslator
Translator * theTranslator
Definition: language.cpp:156
Translator::trInterfaceList
virtual QCString trInterfaceList()=0
Translator::trFileListDescription
virtual QCString trFileListDescription(bool extractAll)=0
LayoutNavEntry::Pages
@ Pages
Definition: layout.h:131
Translator::trInterfaceHierarchyDescription
virtual QCString trInterfaceHierarchyDescription()=0
LayoutNavEntry::Examples
@ Examples
Definition: layout.h:156
LayoutNavEntry::FileGlobals
@ FileGlobals
Definition: layout.h:155
Translator::trMainPage
virtual QCString trMainPage()=0
TRUE
#define TRUE
Definition: qcstring.h:36
LayoutNavEntry::InterfaceList
@ InterfaceList
Definition: layout.h:143
Translator::trConceptList
virtual QCString trConceptList()=0
Translator::trModulesMembers
virtual QCString trModulesMembers()=0
Translator::trModulesListDescription
virtual QCString trModulesListDescription(bool extractAll)=0
Translator::trDesignUnitList
virtual QCString trDesignUnitList()=0
Translator::trDataTypes
virtual QCString trDataTypes()=0
Translator::trConceptListDescription
virtual QCString trConceptListDescription(bool extractAll)=0
Translator::trDesignUnitListDescription
virtual QCString trDesignUnitListDescription()=0
LayoutDocManager::addEntry
void addEntry(LayoutPart p, LayoutDocEntry *e)
Definition: layout.cpp:1590
LayoutNavEntry::Structs
@ Structs
Definition: layout.h:146
Translator::trExceptionListDescription
virtual QCString trExceptionListDescription()=0
Translator::trSliceInterfaces
virtual QCString trSliceInterfaces()=0
Translator::trCompoundListDescription
virtual QCString trCompoundListDescription()=0
LayoutParser::m_invalidEntry
bool m_invalidEntry
Definition: layout.cpp:707
LayoutNavEntry::ClassIndex
@ ClassIndex
Definition: layout.h:139
Translator::trExceptionIndex
virtual QCString trExceptionIndex()=0
Translator::trCompoundMembersDescriptionFortran
virtual QCString trCompoundMembersDescriptionFortran(bool extractAll)=0
LayoutNavEntry::Concepts
@ Concepts
Definition: layout.h:136
Translator::trModulesMemberDescription
virtual QCString trModulesMemberDescription(bool extractAll)=0
Translator::trModulesList
virtual QCString trModulesList()=0
Translator::trDesignUnitHierarchy
virtual QCString trDesignUnitHierarchy()=0
Config_getBool
#define Config_getBool(name)
Definition: config.h:33
Translator::trFile
virtual QCString trFile(bool first_capital, bool singular)=0
LayoutDocManager::clear
void clear(LayoutPart p)
Definition: layout.cpp:1595
msg
void msg(const char *fmt,...)
Definition: message.cpp:53
LayoutDocManager::instance
static LayoutDocManager & instance()
Returns a reference to this singleton.
Definition: layout.cpp:1574
Translator::trNamespaceList
virtual QCString trNamespaceList()=0
Translator::trCompoundList
virtual QCString trCompoundList()=0
Translator::trDesignUnits
virtual QCString trDesignUnits()=0
qPrint
const char * qPrint(const char *s)
Definition: qcstring.h:589
LayoutNavEntry::ClassList
@ ClassList
Definition: layout.h:138
Translator::trNamespaceListDescription
virtual QCString trNamespaceListDescription(bool extractAll)=0
LayoutNavEntry::Classes
@ Classes
Definition: layout.h:137
LayoutNavEntry::NamespaceList
@ NamespaceList
Definition: layout.h:134
LayoutNavEntry::Namespaces
@ Namespaces
Definition: layout.h:133
Translator::trCompoundMembersDescription
virtual QCString trCompoundMembersDescription(bool extractAll)=0
Translator::trStructIndex
virtual QCString trStructIndex()=0
Translator::trClasses
virtual QCString trClasses()=0
Translator::trNamespaceMembers
virtual QCString trNamespaceMembers()=0
LayoutParser::m_part
int m_part
Definition: layout.cpp:705
Translator::trPackages
virtual QCString trPackages()=0
Translator::trCompoundListFortran
virtual QCString trCompoundListFortran()=0
Translator::trStructList
virtual QCString trStructList()=0
LayoutNavEntry::ClassHierarchy
@ ClassHierarchy
Definition: layout.h:140
LayoutParser::LayoutParser
LayoutParser()
Definition: layout.cpp:701
Translator::trStructs
virtual QCString trStructs()=0
Translator::trInterfaceListDescription
virtual QCString trInterfaceListDescription()=0
LayoutNavEntry::InterfaceIndex
@ InterfaceIndex
Definition: layout.h:144
Translator::trInterfaceIndex
virtual QCString trInterfaceIndex()=0
Translator::trExamples
virtual QCString trExamples()=0
LayoutNavEntry::ClassMembers
@ ClassMembers
Definition: layout.h:141
LayoutNavEntry::clear
void clear()
Definition: layout.h:176
LayoutNavEntry::ExceptionIndex
@ ExceptionIndex
Definition: layout.h:151
LayoutNavEntry::MainPage
@ MainPage
Definition: layout.h:130
LayoutNavEntry::InterfaceHierarchy
@ InterfaceHierarchy
Definition: layout.h:145
Translator::trFileMembers
virtual QCString trFileMembers()=0
QCString::right
QCString right(size_t len) const
Definition: qcstring.h:217
Translator::trCompoundIndex
virtual QCString trCompoundIndex()=0
QCString::sprintf
QCString & sprintf(const char *format,...)
Definition: qcstring.cpp:24
XMLHandlers::value
static std::string value(const Attributes &attrib, const std::string &key)
Definition: xml.h:57
LayoutNavEntry::parent
LayoutNavEntry * parent() const
Definition: layout.h:169
FALSE
#define FALSE
Definition: qcstring.h:33
QCString
This is an alternative implementation of QCString.
Definition: qcstring.h:108