Doxygen
|
Minimal replacement for QFileInfo. More...
#include <src/fileinfo.h>
Public Member Functions | |
FileInfo (const std::string &name) | |
bool | exists () const |
size_t | size () const |
bool | isWritable () const |
bool | isReadable () const |
bool | isExecutable () const |
bool | isRelative () const |
bool | isFile () const |
bool | isDir () const |
bool | isSymLink () const |
std::string | readLink () const |
std::string | filePath () const |
std::string | absFilePath () const |
std::string | fileName () const |
std::string | baseName () const |
std::string | extension (bool complete) const |
std::string | dirPath (bool absPath=true) const |
Static Private Member Functions | |
static void | correctPath (std::string &s) |
Private Attributes | |
std::string | m_name |
Minimal replacement for QFileInfo.
Definition at line 22 of file fileinfo.h.
|
inlineexplicit |
std::string FileInfo::absFilePath | ( | ) | const |
Definition at line 101 of file fileinfo.cpp.
References correctPath(), and m_name.
Referenced by Preprocessor::addSearchDir(), checkAndOpenFile(), checkMarkdownMainfile(), cleanUpPaths(), determineAbsoluteIncludeName(), dirPath(), findFilePath(), FormulaManager::generateImages(), genericPatternMatch(), getConvertLatexMacro(), markdownFileNameToId(), openDbConnection(), parseFile(), MarkdownOutlineParser::parseInput(), preProcessFile(), RTFGenerator::preProcessFileInplace(), Markdown::Private::processLink(), readConfiguration(), readDir(), readFileOrDirectory(), readTagFile(), resolveLink(), setFileName(), substituteLatexKeywords(), and ClassDefImpl::writeIncludeFilesForSlice().
std::string FileInfo::baseName | ( | ) | const |
Definition at line 123 of file fileinfo.cpp.
References fileName().
Referenced by parseMain().
|
staticprivate |
Definition at line 96 of file fileinfo.cpp.
Referenced by absFilePath(), and dirPath().
std::string FileInfo::dirPath | ( | bool | absPath = true | ) | const |
Definition at line 137 of file fileinfo.cpp.
References absFilePath(), correctPath(), and m_name.
Referenced by Config::checkAndCorrect(), determineAbsoluteIncludeName(), findFile(), findPackageScope(), initWarningFormat(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), HtmlDocVisitor::operator()(), HtmlDocVisitor::operator()(), LatexDocVisitor::operator()(), LatexDocVisitor::operator()(), ManDocVisitor::operator()(), ManDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), XmlDocVisitor::operator()(), XmlDocVisitor::operator()(), CodeFragmentManager::parseCodeFragment(), readDir(), and readFileOrDirectory().
bool FileInfo::exists | ( | ) | const |
Definition at line 30 of file fileinfo.cpp.
References m_name.
Referenced by Config::checkAndCorrect(), checkAndOpenFile(), checkMarkdownMainfile(), cleanUpPaths(), computeVerifiedDotPath(), copyExtraFiles(), copyIcon(), copyLatexStyleSheet(), copyLogo(), copyStyleSheet(), deliverablesPresent(), determineAbsoluteIncludeName(), Dir::exists(), ExistsOnPath(), extractBoundingBox(), extraLatexStyleSheet(), fileToString(), DocParser::findAndCopyImage(), findFile(), findFilePath(), findPackageScopeFromPath(), CitationManager::generatePage(), RTFGenerator::init(), FormulaManager::initFromRepository(), CitationManager::insertCrossReferencesForBibFile(), insertMapFile(), CitationManager::latexBibFiles(), Htags::loadFilemap(), openDbConnection(), openOutputFile(), parseInput(), Markdown::Private::processLink(), readConfiguration(), readDir(), readFileOrDirectory(), readIncludeFile(), readInputFile(), readTagFile(), readTextFileByName(), runPlantumlContent(), ManGenerator::startDoxyAnchor(), substituteHtmlKeywords(), tryPath(), ClassDefImpl::writeIncludeFilesForSlice(), and HtmlGenerator::writeStyleInfo().
std::string FileInfo::extension | ( | bool | complete | ) | const |
Definition at line 130 of file fileinfo.cpp.
References fileName().
Referenced by getLanguageFromFileName().
std::string FileInfo::fileName | ( | ) | const |
Definition at line 118 of file fileinfo.cpp.
References m_name.
Referenced by baseName(), copyExtraFiles(), copyIcon(), copyLatexStyleSheet(), copyLogo(), copyStyleSheet(), FormulaManager::createLatexFile(), extension(), extraLatexStyleSheet(), FormulaManager::generateImages(), genericPatternMatch(), RTFGenerator::init(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), HtmlDocVisitor::operator()(), HtmlDocVisitor::operator()(), LatexDocVisitor::operator()(), LatexDocVisitor::operator()(), ManDocVisitor::operator()(), ManDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), XmlDocVisitor::operator()(), XmlDocVisitor::operator()(), CodeFragmentManager::parseCodeFragment(), MarkdownOutlineParser::parseInput(), Markdown::Private::processLink(), readDir(), readFileOrDirectory(), substituteHtmlKeywords(), substituteLatexKeywords(), and HtmlGenerator::writeStyleInfo().
std::string FileInfo::filePath | ( | ) | const |
Definition at line 91 of file fileinfo.cpp.
References m_name.
Referenced by genericPatternMatch(), and openOutputFile().
bool FileInfo::isDir | ( | ) | const |
Definition at line 70 of file fileinfo.cpp.
References m_name.
Referenced by Preprocessor::addSearchDir(), Config::checkAndCorrect(), cleanUpPaths(), copyExtraFiles(), copyIcon(), copyLatexStyleSheet(), copyLogo(), copyStyleSheet(), determineAbsoluteIncludeName(), Dir::exists(), readDir(), readFileOrDirectory(), and resolveSymlink().
bool FileInfo::isExecutable | ( | ) | const |
Definition at line 51 of file fileinfo.cpp.
References m_name.
bool FileInfo::isFile | ( | ) | const |
Definition at line 63 of file fileinfo.cpp.
References m_name.
Referenced by Config::checkAndCorrect(), checkAndOpenFile(), computeVerifiedDotPath(), fileToString(), parseInput(), readDir(), readFileOrDirectory(), readIncludeFile(), readTagFile(), runPlantumlContent(), tryPath(), and HtmlGenerator::writeStyleInfo().
bool FileInfo::isReadable | ( | ) | const |
Definition at line 44 of file fileinfo.cpp.
References m_name.
Referenced by Htags::loadFilemap(), Markdown::Private::processLink(), readDir(), readFileOrDirectory(), and HtmlGenerator::writeStyleInfo().
bool FileInfo::isRelative | ( | ) | const |
bool FileInfo::isSymLink | ( | ) | const |
Definition at line 77 of file fileinfo.cpp.
References m_name.
Referenced by DocParser::findAndCopyImage(), readDir(), readFileOrDirectory(), and resolveSymlink().
bool FileInfo::isWritable | ( | ) | const |
Definition at line 37 of file fileinfo.cpp.
References m_name.
std::string FileInfo::readLink | ( | ) | const |
Definition at line 84 of file fileinfo.cpp.
References m_name.
Referenced by resolveSymlink().
size_t FileInfo::size | ( | ) | const |
Definition at line 23 of file fileinfo.cpp.
References m_name.
Referenced by deliverablesPresent(), insertMapFile(), and readInputFile().
|
private |
Definition at line 44 of file fileinfo.h.
Referenced by absFilePath(), dirPath(), exists(), FileInfo(), fileName(), filePath(), isDir(), isExecutable(), isFile(), isReadable(), isRelative(), isSymLink(), isWritable(), readLink(), and size().