Doxygen
LayoutDocManager类 参考

Singleton providing access to the (user configurable) layout of the documentation 更多...

#include <layout.h>

class  Private
 

Public 类型

enum  LayoutPart {
  Class, Concept, Namespace, File,
  Group, Directory, NrParts
}
 

Public 成员函数

const LayoutDocEntryListdocEntries (LayoutPart part) const
 Returns the list of LayoutDocEntry's in representation order for a given page identified by part. 更多...
 
LayoutNavEntryrootNavEntry () const
 returns the (invisible) root of the navigation tree. 更多...
 
void parse (const QCString &fileName)
 Parses a user provided layout 更多...
 
void init ()
 

静态 Public 成员函数

static LayoutDocManagerinstance ()
 Returns a reference to this singleton. 更多...
 

Private 成员函数

void addEntry (LayoutPart p, LayoutDocEntry *e)
 
void clear (LayoutPart p)
 
 LayoutDocManager ()
 
 ~LayoutDocManager ()
 

Private 属性

std::unique_ptr< Privated
 

友元

class LayoutParser
 

详细描述

Singleton providing access to the (user configurable) layout of the documentation

在文件 layout.h197 行定义.

成员枚举类型说明

◆ LayoutPart

枚举值
Class 
Concept 
Namespace 
File 
Group 
Directory 
NrParts 

在文件 layout.h201 行定义.

202  {
204  NrParts
205  };

构造及析构函数说明

◆ LayoutDocManager()

LayoutDocManager::LayoutDocManager ( )
private

在文件 layout.cpp1550 行定义.

1550  : d(std::make_unique<Private>())
1551 {
1552  d->rootNav = new LayoutNavEntry;
1553 }

引用了 d.

被这些函数引用 instance().

◆ ~LayoutDocManager()

LayoutDocManager::~LayoutDocManager ( )
private

在文件 layout.cpp1569 行定义.

1570 {
1571  delete d->rootNav;
1572 }

引用了 d.

成员函数说明

◆ addEntry()

void LayoutDocManager::addEntry ( LayoutDocManager::LayoutPart  p,
LayoutDocEntry e 
)
private

◆ clear()

void LayoutDocManager::clear ( LayoutDocManager::LayoutPart  p)
private

在文件 layout.cpp1595 行定义.

1596 {
1597  d->docEntries[(int)p].clear();
1598 }

引用了 d.

被这些函数引用 LayoutParser::startClass(), LayoutParser::startConcept(), LayoutParser::startDirectory(), LayoutParser::startFile(), LayoutParser::startGroup() , 以及 LayoutParser::startNamespace().

◆ docEntries()

const LayoutDocEntryList & LayoutDocManager::docEntries ( LayoutDocManager::LayoutPart  part) const

Returns the list of LayoutDocEntry's in representation order for a given page identified by part.

在文件 layout.cpp1580 行定义.

1581 {
1582  return d->docEntries[(int)part];
1583 }

引用了 d.

◆ init()

void LayoutDocManager::init ( )

在文件 layout.cpp1556 行定义.

1557 {
1558  LayoutParser &layoutParser = LayoutParser::instance();
1559  XMLHandlers handlers;
1560  handlers.startElement = [&layoutParser](const std::string &name,const XMLHandlers::Attributes &attrs) { layoutParser.startElement(name,attrs); };
1561  handlers.endElement = [&layoutParser](const std::string &name) { layoutParser.endElement(name); };
1562  handlers.error = [&layoutParser](const std::string &fileName,int lineNr,const std::string &msg) { layoutParser.error(fileName,lineNr,msg); };
1563  XMLParser parser(handlers);
1564  layoutParser.setDocumentLocator(&parser);
1565  QCString layout_default = ResourceMgr::instance().getAsString("layout_default.xml");
1566  parser.parse("layout_default.xml",layout_default.data(),Debug::isFlagSet(Debug::Lex));
1567 }

引用了 QCString::data(), XMLHandlers::endElement, LayoutParser::endElement(), XMLHandlers::error, LayoutParser::error(), ResourceMgr::getAsString(), ResourceMgr::instance(), LayoutParser::instance(), Debug::isFlagSet(), Debug::Lex, msg(), XMLParser::parse(), LayoutParser::setDocumentLocator(), XMLHandlers::startElement , 以及 LayoutParser::startElement().

被这些函数引用 parseInput().

◆ instance()

LayoutDocManager & LayoutDocManager::instance ( )
static

Returns a reference to this singleton.

在文件 layout.cpp1574 行定义.

1575 {
1576  static LayoutDocManager *theInstance = new LayoutDocManager;
1577  return *theInstance;
1578 }

引用了 LayoutDocManager().

被这些函数引用 NestingNodeContext::Private::addMembers(), addMembersToIndex(), ClassDefImpl::countAdditionalInheritedMembers(), countVisibleMembers(), LayoutParser::endMemberDecl(), LayoutParser::endMemberDef(), generateJSNavTree(), ClassDefImpl::getTitleForMemberListType(), parseInput(), renderQuickLinksAsTabs(), ClassDefImpl::setAnonymousEnumType(), LayoutParser::startClass(), LayoutParser::startConcept(), LayoutParser::startDirectory(), LayoutParser::startFile(), LayoutParser::startGroup(), LayoutParser::startMemberDecl(), LayoutParser::startMemberDeclEntry(), LayoutParser::startMemberDef(), LayoutParser::startMemberDefEntry(), LayoutParser::startNamespace(), LayoutParser::startNavEntry(), LayoutParser::startNavIndex(), LayoutParser::startSectionEntry(), LayoutParser::startSimpleEntry(), ClassDefImpl::writeAdditionalInheritedMembers(), writeAlphabeticalExceptionIndex(), writeAlphabeticalIndex(), writeAlphabeticalInterfaceIndex(), writeAlphabeticalStructIndex(), writeAnnotatedIndexGeneric(), writeClassMemberIndex(), writeClassMemberIndexFiltered(), writeConceptIndex(), ClassDefImpl::writeDeclaration(), writeDefaultQuickLinks(), NamespaceDefImpl::writeDocumentation(), ConceptDefImpl::writeDocumentation(), DirDefImpl::writeDocumentation(), GroupDefImpl::writeDocumentation(), FileDefImpl::writeDocumentation(), ClassDefImpl::writeDocumentationContents(), writeExampleIndex(), writeFileIndex(), writeFileMemberIndex(), writeFileMemberIndexFiltered(), writeGraphicalClassHierarchy(), writeGraphicalExceptionHierarchy(), writeGraphicalInterfaceHierarchy(), writeGroupIndex(), writeGroupTreeNode(), writeHierarchicalExceptionIndex(), writeHierarchicalIndex(), writeHierarchicalInterfaceIndex(), writeIndexHierarchy(), writeIndexHierarchyEntries(), ClassDefImpl::writeInlineDocumentation(), writeMenuData(), writeNamespaceIndex(), writeNamespaceMemberIndex(), writeNamespaceMemberIndexFiltered(), writeNamespaceMembers(), writePageIndex(), writePages(), FileDefImpl::writeSummaryLinks(), NamespaceDefImpl::writeSummaryLinks(), GroupDefImpl::writeSummaryLinks(), ClassDefImpl::writeSummaryLinks(), NamespaceDefImpl::writeTagFile(), DirDefImpl::writeTagFile(), GroupDefImpl::writeTagFile(), FileDefImpl::writeTagFile() , 以及 ClassDefImpl::writeTagFile().

◆ parse()

void LayoutDocManager::parse ( const QCString fileName)

Parses a user provided layout

在文件 layout.cpp1600 行定义.

1601 {
1602  LayoutParser &layoutParser = LayoutParser::instance();
1603  XMLHandlers handlers;
1604  handlers.startElement = [&layoutParser](const std::string &name,const XMLHandlers::Attributes &attrs) { layoutParser.startElement(name,attrs); };
1605  handlers.endElement = [&layoutParser](const std::string &name) { layoutParser.endElement(name); };
1606  handlers.error = [&layoutParser](const std::string &fn,int lineNr,const std::string &msg) { layoutParser.error(fn,lineNr,msg); };
1607  XMLParser parser(handlers);
1608  layoutParser.setDocumentLocator(&parser);
1609  parser.parse(fileName.data(),fileToString(fileName).data(),Debug::isFlagSet(Debug::Lex));
1610 }

引用了 QCString::data(), XMLHandlers::endElement, LayoutParser::endElement(), XMLHandlers::error, LayoutParser::error(), fileToString(), LayoutParser::instance(), Debug::isFlagSet(), Debug::Lex, msg(), XMLParser::parse(), LayoutParser::setDocumentLocator(), XMLHandlers::startElement , 以及 LayoutParser::startElement().

被这些函数引用 parseInput().

◆ rootNavEntry()

友元及相关函数文档

◆ LayoutParser

friend class LayoutParser
friend

在文件 layout.h224 行定义.

类成员变量说明

◆ d

std::unique_ptr<Private> LayoutDocManager::d
private

在文件 layout.h223 行定义.

被这些函数引用 addEntry(), clear(), docEntries(), LayoutDocManager(), rootNavEntry() , 以及 ~LayoutDocManager().


该类的文档由以下文件生成:
XMLParser
Definition: xml.h:64
ResourceMgr::instance
static ResourceMgr & instance()
Returns the one and only instance of this class
Definition: resourcemgr.cpp:32
LayoutNavEntry
Base class for the layout of a navigation item at the top of the HTML pages.
Definition: layout.h:125
XMLHandlers::startElement
std::function< StartElementType > startElement
handler invoked when an opening tag has been found
Definition: xml.h:52
LayoutDocManager::Directory
@ Directory
Definition: layout.h:203
XMLHandlers::Attributes
std::unordered_map< std::string, std::string > Attributes
Definition: xml.h:42
ResourceMgr::getAsString
QCString getAsString(const QCString &name) const
Gets the resource data as a C string
Definition: resourcemgr.cpp:192
LayoutParser::startElement
void startElement(const std::string &name, const XMLHandlers::Attributes &attrib)
Definition: layout.cpp:1502
LayoutDocManager::File
@ File
Definition: layout.h:203
LayoutDocManager::d
std::unique_ptr< Private > d
Definition: layout.h:223
LayoutParser
Definition: layout.cpp:163
Debug::Lex
@ Lex
Definition: debug.h:39
LayoutDocManager::Concept
@ Concept
Definition: layout.h:203
LayoutDocManager::Class
@ Class
Definition: layout.h:203
LayoutDocManager::NrParts
@ NrParts
Definition: layout.h:204
Debug::isFlagSet
static bool isFlagSet(DebugMask mask)
Definition: debug.cpp:99
LayoutDocManager::Group
@ Group
Definition: layout.h:203
XMLHandlers::error
std::function< ErrorType > error
handler invoked when the parser encounters an error
Definition: xml.h:55
LayoutDocManager::Namespace
@ Namespace
Definition: layout.h:203
LayoutDocManager
Singleton providing access to the (user configurable) layout of the documentation
Definition: layout.h:197
XMLHandlers::endElement
std::function< EndElementType > endElement
handler invoked when a closing tag has been found
Definition: xml.h:53
LayoutParser::instance
static LayoutParser & instance()
Definition: layout.cpp:166
fileToString
QCString fileToString(const QCString &name, bool filter, bool isSourceCode)
Definition: util.cpp:1394
LayoutDocManager::LayoutDocManager
LayoutDocManager()
Definition: layout.cpp:1550
LayoutParser::error
void error(const std::string &fileName, int lineNr, const std::string &msg)
Definition: layout.cpp:177
XMLHandlers
Event handlers that can installed by the client and called while parsing a XML document.
Definition: xml.h:26
LayoutDocManager::clear
void clear(LayoutPart p)
Definition: layout.cpp:1595
msg
void msg(const char *fmt,...)
Definition: message.cpp:53
LayoutParser::setDocumentLocator
void setDocumentLocator(const XMLLocator *locator)
Definition: layout.cpp:173
LayoutParser::endElement
void endElement(const std::string &name)
Definition: layout.cpp:1518
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