Wrapper for stat() and lstat() system calls. More...
Public Member Functions | |
fileStat () | |
fileStat (const char *fName, const bool followLink=true, const unsigned int maxTime=0) | |
fileStat (const fileName &fName, const bool followLink=true, const unsigned int maxTime=0) | |
fileStat (Istream &is) | |
const struct stat & | status () const |
bool | valid () const |
label | size () const |
time_t | modTime () const |
double | dmodTime () const |
bool | sameDevice (const fileStat &other) const |
bool | sameINode (const fileStat &other) const |
bool | sameINode (const label iNode) const |
Friends | |
Istream & | operator>> (Istream &is, fileStat &fs) |
Ostream & | operator<< (Ostream &os, const fileStat &fs) |
Wrapper for stat() and lstat() system calls.
Definition at line 63 of file fileStat.H.
fileStat | ( | ) |
Definition at line 33 of file fileStat.C.
Definition at line 40 of file fileStat.C.
References timedOut.
Definition at line 76 of file fileStat.C.
Definition at line 86 of file fileStat.C.
|
inline |
Definition at line 118 of file fileStat.H.
Referenced by Foam::fileSize(), and Foam::mode().
|
inline |
Definition at line 124 of file fileStat.H.
Referenced by Foam::fileSize(), and Foam::mode().
Foam::label size | ( | ) | const |
Definition at line 94 of file fileStat.C.
time_t modTime | ( | ) | const |
Definition at line 100 of file fileStat.C.
Referenced by Foam::lastModified().
double dmodTime | ( | ) | const |
Definition at line 106 of file fileStat.C.
References Foam::constant::electromagnetic::e, and else.
Referenced by Foam::highResLastModified().
Definition at line 122 of file fileStat.C.
Definition at line 133 of file fileStat.C.
bool sameINode | ( | const label | iNode | ) | const |
Definition at line 139 of file fileStat.C.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.