Doxygen
|
Class representing a directory in the file system. More...
#include <src/dir.h>
Classes | |
struct | Private |
Public Member Functions | |
Dir () | |
Dir (const std::string &path) | |
Dir (const Dir &d) | |
Dir & | operator= (const Dir &d) |
Dir (Dir &&d) | |
Dir & | operator= (Dir &&d) |
~Dir () | |
void | setPath (const std::string &path) |
std::string | path () const |
DirIterator | iterator () const |
bool | isEmpty (const std::string subdir) const |
bool | exists () const |
std::string | filePath (const std::string &path, bool acceptsAbsPath=true) const |
bool | exists (const std::string &path, bool acceptsAbsPath=true) const |
bool | mkdir (const std::string &path, bool acceptsAbsPath=true) const |
bool | rmdir (const std::string &path, bool acceptsAbsPath=true) const |
bool | remove (const std::string &path, bool acceptsAbsPath=true) const |
bool | rename (const std::string &orgName, const std::string &newName, bool acceptsAbsPath=true) const |
bool | copy (const std::string &src, const std::string &dest, bool acceptsAbsPath=true) const |
std::string | absPath () const |
bool | isRelative () const |
Static Public Member Functions | |
static bool | isRelativePath (const std::string &path) |
static std::string | currentDirPath () |
static bool | setCurrent (const std::string &path) |
static std::string | cleanDirPath (const std::string &path) |
Private Attributes | |
std::unique_ptr< Private > | p |
Dir::Dir | ( | ) |
Dir::Dir | ( | const std::string & | path | ) |
Dir::Dir | ( | const Dir & | d | ) |
Dir::Dir | ( | Dir && | d | ) |
std::string Dir::absPath | ( | ) | const |
Definition at line 363 of file dir.cpp.
References correctPath(), and p.
Referenced by Htags::execute(), PerlModGenerator::generate(), FormulaManager::generateImages(), parseInput(), Htags::path2URL(), RTFGenerator::preProcessFileInplace(), writeDotGraphFromFile(), and writeDotImageMapFromFile().
|
static |
Definition at line 355 of file dir.cpp.
References correctPath(), and path().
Referenced by findFileDef(), and resolveSymlink().
bool Dir::copy | ( | const std::string & | src, |
const std::string & | dest, | ||
bool | acceptsAbsPath = true ) const |
Definition at line 330 of file dir.cpp.
References filePath().
|
static |
Definition at line 340 of file dir.cpp.
References correctPath().
Referenced by Config::checkAndCorrect(), Htags::execute(), FormulaManager::generateImages(), generateOutput(), CitationManager::generatePage(), parseInput(), RTFGenerator::preProcessFileInplace(), runHtmlHelpCompiler(), runQHelpGenerator(), setPerlModDoxyfile(), Portable::setShortDir(), and writeDiaGraphFromFile().
bool Dir::exists | ( | ) | const |
Definition at line 257 of file dir.cpp.
References FileInfo::exists(), FileInfo::isDir(), and p.
Referenced by clearSubDirs(), PerlModGenerator::createOutputDir(), createOutputDirectory(), createSubDirs(), Htags::execute(), generateDEF(), FormulaManager::generateImages(), generateOutput(), CitationManager::generatePage(), DocbookGenerator::init(), HtmlGenerator::init(), LatexGenerator::init(), ManGenerator::init(), RTFGenerator::init(), initWarningFormat(), mkdir(), parseInput(), RTFGenerator::preProcessFileInplace(), writeDotGraphFromFile(), writeDotImageMapFromFile(), and DotGfxHierarchyTable::writeGraph().
bool Dir::exists | ( | const std::string & | path, |
bool | acceptsAbsPath = true ) const |
std::string Dir::filePath | ( | const std::string & | path, |
bool | acceptsAbsPath = true ) const |
Definition at line 280 of file dir.cpp.
References correctPath(), isRelativePath(), p, and path().
Referenced by copy(), exists(), mkdir(), preProcessFile(), RTFGenerator::preProcessFileInplace(), remove(), and rename().
bool Dir::isEmpty | ( | const std::string | subdir | ) | const |
bool Dir::isRelative | ( | ) | const |
Definition at line 270 of file dir.cpp.
References isRelativePath(), and p.
|
static |
Definition at line 275 of file dir.cpp.
References path().
Referenced by filePath(), and isRelative().
DirIterator Dir::iterator | ( | ) | const |
bool Dir::mkdir | ( | const std::string & | path, |
bool | acceptsAbsPath = true ) const |
Definition at line 295 of file dir.cpp.
References exists(), filePath(), and path().
Referenced by PerlModGenerator::createOutputDir(), createOutputDirectory(), createSubDirs(), generateDEF(), generateOutput(), CitationManager::generatePage(), DocbookGenerator::init(), HtmlGenerator::init(), LatexGenerator::init(), ManGenerator::init(), RTFGenerator::init(), initWarningFormat(), and parseInput().
std::string Dir::path | ( | ) | const |
Definition at line 234 of file dir.cpp.
References p.
Referenced by cleanDirPath(), Dir(), exists(), filePath(), isEmpty(), isRelativePath(), mkdir(), remove(), rmdir(), setCurrent(), and setPath().
bool Dir::remove | ( | const std::string & | path, |
bool | acceptsAbsPath = true ) const |
Definition at line 314 of file dir.cpp.
References filePath(), and path().
Referenced by determineInkscapeVersion(), exitDoxygen(), FormulaManager::generateImages(), generateOutput(), CitationManager::generatePage(), getMscImageMapFromFile(), openDbConnection(), openOutputFile(), RTFGenerator::preProcessFileInplace(), resetPDFSize(), rmdir(), DotFilePatcher::run(), runPlantumlContent(), stopDoxygen(), writeDiaGraphFromFile(), writeDotImageMapFromFile(), and writeMscGraphFromFile().
bool Dir::rename | ( | const std::string & | orgName, |
const std::string & | newName, | ||
bool | acceptsAbsPath = true ) const |
Definition at line 321 of file dir.cpp.
References filePath().
Referenced by openOutputFile(), RTFGenerator::preProcessFileInplace(), resetPDFSize(), and DotFilePatcher::run().
bool Dir::rmdir | ( | const std::string & | path, |
bool | acceptsAbsPath = true ) const |
Definition at line 309 of file dir.cpp.
References path(), and remove().
Referenced by clearSubDirs(), and CitationManager::generatePage().
|
static |
Definition at line 348 of file dir.cpp.
References path().
Referenced by Htags::execute(), FormulaManager::generateImages(), CitationManager::generatePage(), RTFGenerator::preProcessFileInplace(), runHtmlHelpCompiler(), runQHelpGenerator(), Portable::setShortDir(), and writeDiaGraphFromFile().
void Dir::setPath | ( | const std::string & | path | ) |
Definition at line 229 of file dir.cpp.
Referenced by PerlModGenerator::createOutputDir(), Dir(), Htags::execute(), and parseInput().
|
private |
Definition at line 110 of file dir.h.
Referenced by absPath(), Dir(), Dir(), Dir(), Dir(), exists(), filePath(), isRelative(), iterator(), operator=(), operator=(), path(), and setPath().