The FileInfo
Class Reference
Minimal replacement for QFileInfo. More...
Declaration
Included Headers
Public Constructors Index
FileInfo (const std::string &name) | |
Public Member Functions Index
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 |
Private Member Attributes Index
std::string | m_name |
Private Static Functions Index
static void | correctPath (std::string &s) |
Description
Minimal replacement for QFileInfo.
Definition at line 22 of file fileinfo.h.
Public Constructors
FileInfo()
| inline explicit |
Definition at line 25 of file fileinfo.h.
Reference m_name.
Public Member Functions
absFilePath()
|
Declaration at line 37 of file fileinfo.h, 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.
baseName()
|
Declaration at line 39 of file fileinfo.h, definition at line 123 of file fileinfo.cpp.
Reference fileName.
Referenced by parseMain.
dirPath()
|
Declaration at line 41 of file fileinfo.h, 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.
exists()
|
Declaration at line 26 of file fileinfo.h, definition at line 30 of file fileinfo.cpp.
Reference 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.
extension()
|
Declaration at line 40 of file fileinfo.h, definition at line 130 of file fileinfo.cpp.
Reference fileName.
Referenced by getLanguageFromFileName and DefinitionImpl::Private::setDefFileName.
fileName()
|
Declaration at line 38 of file fileinfo.h, definition at line 118 of file fileinfo.cpp.
Reference 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.
filePath()
|
Declaration at line 36 of file fileinfo.h, definition at line 91 of file fileinfo.cpp.
Reference m_name.
Referenced by genericPatternMatch and openOutputFile.
isDir()
|
Declaration at line 33 of file fileinfo.h, definition at line 70 of file fileinfo.cpp.
Reference m_name.
Referenced by Preprocessor::addSearchDir, Config::checkAndCorrect, cleanUpPaths, copyExtraFiles, copyIcon, copyLatexStyleSheet, copyLogo, copyStyleSheet, determineAbsoluteIncludeName, Dir::exists, readDir, readFileOrDirectory and resolveSymlink.
isExecutable()
|
Declaration at line 30 of file fileinfo.h, definition at line 51 of file fileinfo.cpp.
Reference m_name.
isFile()
|
Declaration at line 32 of file fileinfo.h, definition at line 63 of file fileinfo.cpp.
Reference m_name.
Referenced by Config::checkAndCorrect, checkAndOpenFile, computeVerifiedDotPath, fileToString, parseInput, readDir, readFileOrDirectory, readIncludeFile, readTagFile, runPlantumlContent, tryPath and HtmlGenerator::writeStyleInfo.
isReadable()
|
Declaration at line 29 of file fileinfo.h, definition at line 44 of file fileinfo.cpp.
Reference m_name.
Referenced by Htags::loadFilemap, Markdown::Private::processLink, readDir, readFileOrDirectory and HtmlGenerator::writeStyleInfo.
isRelative()
|
Declaration at line 31 of file fileinfo.h, definition at line 58 of file fileinfo.cpp.
Reference m_name.
Referenced by resolveSymlink.
isSymLink()
|
Declaration at line 34 of file fileinfo.h, definition at line 77 of file fileinfo.cpp.
Reference m_name.
Referenced by DocParser::findAndCopyImage, readDir, readFileOrDirectory and resolveSymlink.
isWritable()
|
Declaration at line 28 of file fileinfo.h, definition at line 37 of file fileinfo.cpp.
Reference m_name.
readLink()
|
Declaration at line 35 of file fileinfo.h, definition at line 84 of file fileinfo.cpp.
Reference m_name.
Referenced by resolveSymlink.
size()
|
Declaration at line 27 of file fileinfo.h, definition at line 23 of file fileinfo.cpp.
Reference m_name.
Referenced by deliverablesPresent, insertMapFile and readInputFile.
Private Member Attributes
m_name
|
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.
Private Static Functions
correctPath()
| static |
Declaration at line 43 of file fileinfo.h, definition at line 96 of file fileinfo.cpp.
Referenced by absFilePath and dirPath.
The documentation for this class was generated from the following files:
Generated via doxygen2docusaurus by Doxygen 1.14.0.