Doxygen
|
Singleton for managing resources compiled into an executable 更多...
#include <resourcemgr.h>
类 | |
class | Private |
Public 成员函数 | |
void | registerResources (std::initializer_list< Resource > resources) |
Registers an array of resources 更多... | |
bool | writeCategory (const QCString &categoryName, const QCString &targetDir) const |
Writes all resource belonging to a given category to a given target directory 更多... | |
bool | copyResource (const QCString &name, const QCString &targetDir) const |
Copies a registered resource to a given target directory 更多... | |
bool | copyResourceAs (const QCString &name, const QCString &targetDir, const QCString &targetName, bool append=false) const |
Copies a registered resource to a given target directory under a given target name 更多... | |
QCString | getAsString (const QCString &name) const |
Gets the resource data as a C string 更多... | |
静态 Public 成员函数 | |
static ResourceMgr & | instance () |
Returns the one and only instance of this class 更多... | |
Private 成员函数 | |
const Resource * | get (const QCString &name) const |
Returns a pointer to the resource object with the given name. 更多... | |
ResourceMgr () | |
~ResourceMgr () | |
Private 属性 | |
std::unique_ptr< Private > | p |
Singleton for managing resources compiled into an executable
在文件 resourcemgr.h 第 35 行定义.
|
private |
在文件 resourcemgr.cpp 第 38 行定义.
|
private |
在文件 resourcemgr.cpp 第 42 行定义.
Copies a registered resource to a given target directory
在文件 resourcemgr.cpp 第 180 行定义.
引用了 copyResourceAs().
被这些函数引用 generateJSNavTree(), CitationManager::generatePage(), FTVHelp::generateTreeViewImages(), FTVHelp::generateTreeViewScripts(), generateXML(), HtmlGenerator::init(), TemplateNodeResource::render(), writeJavaScriptSearchIndex(), HtmlGenerator::writeSearchData(), HtmlGenerator::writeSearchPage() , 以及 HtmlGenerator::writeTabData().
bool ResourceMgr::copyResourceAs | ( | const QCString & | name, |
const QCString & | targetDir, | ||
const QCString & | targetName, | ||
bool | append = false |
||
) | const |
Copies a registered resource to a given target directory under a given target name
在文件 resourcemgr.cpp 第 79 行定义.
引用了 ColoredImgDataItem::alpha, Config_getInt, ColoredImgDataItem::content, Resource::CSS, Resource::data, QCString::data(), err(), FALSE, get(), ColoredImgDataItem::height, QCString::left(), QCString::length(), Resource::LumAlpha, Resource::Luminance, ColoredImgDataItem::name, qPrint(), QCString::rawData(), replaceColorMarkers(), Resource::size, QCString::str(), substitute(), Resource::SVG, TRUE, Resource::type, Resource::Verbatim, ColoredImgDataItem::width , 以及 writeColoredImgData().
被这些函数引用 copyResource(), HtmlGenerator::init() , 以及 TemplateNodeResource::render().
Returns a pointer to the resource object with the given name.
在文件 resourcemgr.cpp 第 185 行定义.
引用了 p , 以及 QCString::str().
被这些函数引用 copyResourceAs() , 以及 getAsString().
Gets the resource data as a C string
在文件 resourcemgr.cpp 第 192 行定义.
引用了 Resource::data, get(), QCString::rawData() , 以及 Resource::size.
被这些函数引用 generateXML(), HtmlGenerator::init(), LatexGenerator::init(), LayoutDocManager::init(), TemplateEngine::Private::loadByName(), writeDefaultLayoutFile(), writeDefaultStyleSheet(), HtmlGenerator::writeExternalSearchPage(), HtmlGenerator::writeFooterFile(), LatexGenerator::writeFooterFile(), HtmlGenerator::writeHeaderFile(), LatexGenerator::writeHeaderFile(), HtmlGenerator::writeSearchData(), HtmlGenerator::writeSearchPage() , 以及 LatexGenerator::writeStyleInfo().
|
static |
Returns the one and only instance of this class
在文件 resourcemgr.cpp 第 32 行定义.
被这些函数引用 generateJSNavTree(), CitationManager::generatePage(), generateTemplateFiles(), FTVHelp::generateTreeViewImages(), FTVHelp::generateTreeViewScripts(), generateXML(), HtmlGenerator::init(), LatexGenerator::init(), LayoutDocManager::init(), TemplateEngine::Private::loadByName(), TemplateNodeResource::render(), writeDefaultLayoutFile(), writeDefaultStyleSheet(), HtmlGenerator::writeExternalSearchPage(), HtmlGenerator::writeFooterFile(), LatexGenerator::writeFooterFile(), HtmlGenerator::writeHeaderFile(), LatexGenerator::writeHeaderFile(), writeJavaScriptSearchIndex(), HtmlGenerator::writeSearchData(), HtmlGenerator::writeSearchPage(), HtmlGenerator::writeStyleInfo(), LatexGenerator::writeStyleInfo(), HtmlGenerator::writeStyleSheetFile() , 以及 HtmlGenerator::writeTabData().
void ResourceMgr::registerResources | ( | std::initializer_list< Resource > | resources | ) |
Writes all resource belonging to a given category to a given target directory
在文件 resourcemgr.cpp 第 54 行定义.
引用了 Resource::category, Resource::data, err(), FALSE, Resource::name, p, qPrint(), Resource::size, QCString::str() , 以及 TRUE.
被这些函数引用 generateTemplateFiles().
|
private |
在文件 resourcemgr.h 第 62 行定义.
被这些函数引用 get(), registerResources() , 以及 writeCategory().