My Project
|
#include <assert.h>
#include <qdir.h>
#include "context.h"
#include "config.h"
#include "index.h"
#include "classlist.h"
#include "doxygen.h"
#include "namespacedef.h"
#include "filedef.h"
#include "pagedef.h"
#include "groupdef.h"
#include "util.h"
#include "version.h"
#include "language.h"
#include "message.h"
#include "vhdldocgen.h"
#include "filename.h"
#include "dirdef.h"
#include "docparser.h"
#include "htmlgen.h"
#include "htmldocvisitor.h"
#include "htmlhelp.h"
#include "latexgen.h"
#include "latexdocvisitor.h"
#include "dot.h"
#include "diagram.h"
#include "example.h"
#include "membername.h"
#include "parserintf.h"
#include "portable.h"
#include "arguments.h"
#include "searchindex.h"
#include "resourcemgr.h"
Go to the source code of this file.
Functions | |
static TemplateVariant | parseDoc (Definition *def, const QCString &file, int line, const QCString &relPath, const QCString &docStr, bool isBrief) |
static TemplateVariant | parseCode (MemberDef *md, const QCString &scopeName, const QCString &relPath, const QCString &code, int startLine=-1, int endLine=-1, bool showLineNumbers=FALSE) |
static TemplateVariant | parseCode (FileDef *fd, const QCString &relPath) |
TemplateVariant | createLinkedText (Definition *def, const QCString &relPath, const QCString &text) |
static int | computeMaxDepth (const TemplateListIntf *list) |
static int | computeNumNodesAtLevel (const TemplateStructIntf *s, int level, int maxLevel) |
static int | computePreferredDepth (const TemplateListIntf *list, int maxDepth) |
void | generateOutputViaTemplate () |
void | generateTemplateFiles (const char *templateDir) |
Variables | |
struct ContextGlobals | g_globals |
enum ContextOutputFormat |
Definition at line 55 of file context.cpp.
|
static |
Definition at line 5855 of file context.cpp.
References TemplateListIntf::createIterator(), TemplateListIntf::ConstIterator::current(), TemplateStructIntf::get(), TemplateListIntf::ConstIterator::toFirst(), TemplateVariant::toList(), TemplateListIntf::ConstIterator::toNext(), and TemplateVariant::toStruct().
Referenced by ClassHierarchyContext::Private::maxDepth(), ClassTreeContext::Private::maxDepth(), NamespaceTreeContext::Private::maxDepth(), FileTreeContext::Private::maxDepth(), PageTreeContext::Private::maxDepth(), ModuleTreeContext::Private::maxDepth(), and ExampleTreeContext::Private::maxDepth().
|
static |
Definition at line 5874 of file context.cpp.
References TemplateListIntf::createIterator(), TemplateListIntf::ConstIterator::current(), TemplateStructIntf::get(), TemplateListIntf::ConstIterator::toFirst(), TemplateVariant::toList(), TemplateListIntf::ConstIterator::toNext(), and TemplateVariant::toStruct().
Referenced by computePreferredDepth().
|
static |
Definition at line 5895 of file context.cpp.
References computeNumNodesAtLevel(), Config_getInt, TemplateListIntf::createIterator(), TemplateListIntf::ConstIterator::current(), TemplateListIntf::ConstIterator::toFirst(), TemplateListIntf::ConstIterator::toNext(), and TemplateVariant::toStruct().
Referenced by ClassHierarchyContext::Private::preferredDepth(), ClassTreeContext::Private::preferredDepth(), NamespaceTreeContext::Private::preferredDepth(), FileTreeContext::Private::preferredDepth(), PageTreeContext::Private::preferredDepth(), ModuleTreeContext::Private::preferredDepth(), and ExampleTreeContext::Private::preferredDepth().
TemplateVariant createLinkedText | ( | Definition * | def, |
const QCString & | relPath, | ||
const QCString & | text | ||
) |
Definition at line 3855 of file context.cpp.
References TextGeneratorFactory::create(), Definition::getBodyDef(), Definition::getOuterScope(), TextGeneratorFactory::instance(), and linkifyText().
Referenced by MemberContext::Private::bitfields(), MemberContext::Private::declArgs(), MemberContext::Private::declType(), MemberContext::Private::definition(), ArgumentContext::Private::defVal(), MemberContext::Private::exception(), MemberContext::Private::fieldType(), MemberContext::Private::initializer(), MemberContext::Private::templateAlias(), MemberContext::Private::trailingReturnType(), and ArgumentContext::Private::type().
void generateOutputViaTemplate | ( | ) |
Definition at line 10083 of file context.cpp.
References ConfigContext::alloc(), DoxygenContext::alloc(), TranslateContext::alloc(), PageContext::alloc(), ClassListContext::alloc(), ClassIndexContext::alloc(), ClassHierarchyContext::alloc(), ClassTreeContext::alloc(), NamespaceListContext::alloc(), NamespaceTreeContext::alloc(), DirListContext::alloc(), FileListContext::alloc(), FileTreeContext::alloc(), PageListContext::alloc(), PageTreeContext::alloc(), ModuleListContext::alloc(), ModuleTreeContext::alloc(), ExampleListContext::alloc(), ExampleTreeContext::alloc(), GlobalsIndexContext::alloc(), ClassMembersIndexContext::alloc(), NamespaceMembersIndexContext::alloc(), SearchIndicesContext::alloc(), Config_getString, ContextOutputFormat_Html, ContextOutputFormat_Latex, TemplateEngine::createContext(), createSubDirs(), DefinitionIntf::definitionType(), TemplateEngine::destroyContext(), ContextGlobals::dynSectionId, g_globals, SharedPtr< T >::get(), TemplateEngine::loadByName(), Doxygen::mainPage, msg(), ContextGlobals::outputDir, ContextGlobals::outputFormat, Doxygen::pageSDict, Template::render(), TemplateContext::set(), Definition::setCookie(), TemplateContext::setEscapeIntf(), PageDef::setFileName(), TemplateContext::setOutputDirectory(), TemplateContext::setSpacelessIntf(), TemplateEngine::setTemplateDir(), Doxygen::symbolMap, theTranslator, Translator::trMainPage(), DefinitionIntf::TypeSymbolList, and TemplateEngine::unload().
Referenced by generateOutput().
void generateTemplateFiles | ( | const char * | templateDir | ) |
Definition at line 10252 of file context.cpp.
References err(), ResourceMgr::instance(), and ResourceMgr::writeCategory().
Referenced by readConfiguration().
|
static |
Definition at line 1281 of file context.cpp.
References ContextOutputFormat_Html, ContextOutputFormat_Latex, Definition::docFile(), err(), g_globals, Definition::getBodyDef(), Definition::getDefFileExtension(), Definition::getLanguage(), ParserManager::getParser(), ContextGlobals::outputFormat, ParserInterface::parseCode(), Doxygen::parserManager, and ParserInterface::resetCodeParserState().
Referenced by MemberContext::Private::initializerAsCode(), MemberContext::Private::sourceCode(), FileContext::Private::sources(), DocbookDocVisitor::visit(), RTFDocVisitor::visit(), ManDocVisitor::visit(), XmlDocVisitor::visit(), HtmlDocVisitor::visit(), LatexDocVisitor::visit(), and PerlModDocVisitor::visit().
|
static |
Definition at line 1312 of file context.cpp.
References FileDef::absFilePath(), Config_getBool, ContextOutputFormat_Html, ContextOutputFormat_Latex, Definition::docFile(), err(), fileToString(), g_globals, Definition::getDefFileExtension(), Definition::getLanguage(), ParserManager::getParser(), ContextGlobals::outputFormat, ParserInterface::parseCode(), Doxygen::parserManager, and ParserInterface::resetCodeParserState().
|
static |
Definition at line 1242 of file context.cpp.
References DocRoot::accept(), ContextOutputFormat_Html, ContextOutputFormat_Latex, err(), g_globals, Definition::getDefFileExtension(), DocRoot::isEmpty(), ContextGlobals::outputFormat, and validatingParseDoc().
Referenced by DefinitionContext< FileContext::Private >::brief(), NestingNodeContext::Private::brief(), DefinitionContext< FileContext::Private >::details(), MemberGroupInfoContext::Private::docs(), ArgumentContext::Private::docs(), PageContext::Private::example(), DefinitionContext< FileContext::Private >::inbodyDocs(), and MemberContext::Private::paramDocs().
struct ContextGlobals g_globals |
Referenced by DefinitionContext< FileContext::Private >::brief(), MemberContext::Private::callerGraph(), MemberContext::Private::callGraph(), ClassContext::Private::collaborationDiagram(), TextGeneratorFactory::create(), DefinitionContext< FileContext::Private >::details(), DirContext::Private::dirGraph(), DefinitionContext< FileContext::Private >::dynSectionId(), PageContext::Private::example(), generateOutputViaTemplate(), InheritanceGraphContext::Private::graph(), ModuleContext::Private::groupGraph(), DefinitionContext< FileContext::Private >::inbodyDocs(), FileContext::Private::includedByGraph(), FileContext::Private::includeGraph(), ClassContext::Private::inheritanceDiagram(), parseCode(), and parseDoc().