Public Types | |
typedef std::filesystem::path | pathType |
Public Member Functions | |
fileSystem () | |
fileSystem (const word &dir, const word &file="") | |
fileSystem (const char *dir, const char *file="") | |
fileSystem (const pathType &path) | |
fileSystem (const fileSystem &)=default | |
fileSystem (fileSystem &&)=default | |
fileSystem & | operator= (const fileSystem &)=default |
fileSystem & | operator= (fileSystem &&)=default |
~fileSystem ()=default | |
bool | isDir () const |
const pathType & | path () const |
word | wordPath () const |
fileSystem | dirPath () const |
word | fileName () const |
fileSystem | absolute () const |
fileSystem | canonical () const |
bool | dirExist () const |
bool | exist () const |
fileSystem | createDirs () const |
void | operator+= (const word &fileName) |
void | operator/= (const fileSystem &fs) |
fileSystem | operator() (bool retDir=true) const |
Static Public Member Functions | |
static fileSystem | CWD () |
Static Protected Member Functions | |
static bool | validFileName (const word &name) |
static bool | checkFileName (const word &name) |
Protected Attributes | |
std::filesystem::path | path_ |
bool | isDir_ |
Static Protected Attributes | |
static word | notPermittedCharsFile = word(" ") + word("\t\n\0;:?*/<>\"?\'") |
Friends | |
fileSystem | operator/ (const fileSystem &fs1, const fileSystem &fs2) |
iOstream & | operator<< (iOstream &os, fileSystem fs) |
std::ostream & | operator<< (std::ostream &os, fileSystem fs) |
Definition at line 63 of file fileSystem.hpp.
typedef std::filesystem::path pathType |
Definition at line 93 of file fileSystem.hpp.
|
inline |
Definition at line 96 of file fileSystem.hpp.
Referenced by fileSystem::CWD().
fileSystem | ( | const word & | dir, |
const word & | file = "" |
||
) |
Definition at line 45 of file fileSystem.cpp.
References pFlow::endl(), fatalErrorInFunction, and fatalExit.
fileSystem | ( | const char * | dir, |
const char * | file = "" |
||
) |
Definition at line 68 of file fileSystem.cpp.
fileSystem | ( | const pathType & | path | ) |
Definition at line 75 of file fileSystem.cpp.
References fileSystem::isDir_, and pFlow::isDirectory().
|
default |
|
default |
|
default |
|
inlinestaticprotected |
Definition at line 76 of file fileSystem.hpp.
References fileSystem::notPermittedCharsFile.
Referenced by fileSystem::checkFileName().
|
staticprotected |
Definition at line 27 of file fileSystem.cpp.
References pFlow::endl(), fatalErrorInFunction, fatalExit, fileSystem::notPermittedCharsFile, and fileSystem::validFileName().
|
inlinestatic |
Definition at line 85 of file fileSystem.hpp.
References fileSystem::fileSystem().
Referenced by pFlow::CWD().
|
default |
|
default |
|
inline |
Definition at line 116 of file fileSystem.hpp.
References fileSystem::isDir_.
|
inline |
Definition at line 121 of file fileSystem.hpp.
References fileSystem::path_.
Referenced by pFlow::containingFiles(), pFlow::isDirectory(), pFlow::isRegularFile(), IOfileHeader::path(), repository::path(), and pFlow::subDirectories().
|
inline |
Definition at line 126 of file fileSystem.hpp.
References fileSystem::path_.
Referenced by pFlow::PFtoVTK::convertTimeFolderPointFieldsSelected(), systemControl::getRunName(), systemControl::getTopFolder(), fileStream::openInFile(), and fileStream::openOutFile().
pFlow::fileSystem dirPath | ( | ) | const |
Definition at line 82 of file fileSystem.cpp.
Referenced by fileStream::openOutFile(), and pFlow::operator/().
pFlow::word fileName | ( | ) | const |
Definition at line 96 of file fileSystem.cpp.
References pFlow::endl(), fatalErrorInFunction, and fatalExit.
Referenced by Insertion< ShapeType >::Insertion().
pFlow::fileSystem absolute | ( | ) | const |
Definition at line 116 of file fileSystem.cpp.
References pFlow::endl(), fatalErrorInFunction, fatalExit, fileSystem::isDir_, and fileSystem::path_.
pFlow::fileSystem canonical | ( | ) | const |
Definition at line 140 of file fileSystem.cpp.
References pFlow::endl(), fatalErrorInFunction, fatalExit, fileSystem::isDir_, and fileSystem::path_.
Referenced by systemControl::getRunName(), and systemControl::getTopFolder().
bool dirExist | ( | ) | const |
Definition at line 162 of file fileSystem.cpp.
References pFlow::endl(), fatalErrorInFunction, and fatalExit.
bool exist | ( | ) | const |
Definition at line 179 of file fileSystem.cpp.
References pFlow::endl(), fatalErrorInFunction, and fatalExit.
Referenced by fileStream::openInFile().
pFlow::fileSystem createDirs | ( | ) | const |
Definition at line 196 of file fileSystem.cpp.
References pFlow::endl(), fatalErrorInFunction, and fatalExit.
Referenced by fileStream::openOutFile().
void operator+= | ( | const word & | fileName | ) |
Definition at line 233 of file fileSystem.cpp.
void operator/= | ( | const fileSystem & | fs | ) |
Definition at line 250 of file fileSystem.cpp.
References pFlow::endl(), fatalErrorInFunction, and fatalExit.
pFlow::fileSystem operator() | ( | bool | retDir = true | ) | const |
Definition at line 223 of file fileSystem.cpp.
|
friend |
|
friend |
|
friend |
|
protected |
Definition at line 67 of file fileSystem.hpp.
Referenced by fileSystem::absolute(), fileSystem::canonical(), pFlow::operator/(), pFlow::operator<<(), fileSystem::path(), and fileSystem::wordPath().
|
protected |
Definition at line 68 of file fileSystem.hpp.
Referenced by fileSystem::absolute(), fileSystem::canonical(), fileSystem::fileSystem(), and fileSystem::isDir().
Definition at line 72 of file fileSystem.hpp.
Referenced by fileSystem::checkFileName(), and fileSystem::validFileName().