Wrapper for stat() system call. More...
Public Member Functions | |
fileStat () | |
Empty constructor. More... | |
fileStat (const fileName &fName, const unsigned int maxTime=0) | |
Construct from components. More... | |
fileStat (Istream &) | |
Construct from Istream. More... | |
const struct stat & | status () const |
Raw status. More... | |
bool | isValid () const |
Did constructor fail. More... | |
bool | sameDevice (const fileStat &stat2) const |
Compare two fileStats for same device. More... | |
bool | sameINode (const fileStat &stat2) const |
Compare two fileStats for same Inode. More... | |
bool | sameINode (const label iNode) const |
Compare state against inode. More... | |
Private Attributes | |
struct stat | status_ |
bool | isValid_ |
Friends | |
Istream & | operator>> (Istream &, fileStat &) |
Ostream & | operator<< (Ostream &, const fileStat &) |
Wrapper for stat() system call.
Definition at line 65 of file fileStat.H.
fileStat | ( | ) |
Empty constructor.
Definition at line 39 of file fileStat.C.
Construct from Istream.
Definition at line 69 of file fileStat.C.
|
inline |
Raw status.
Definition at line 93 of file fileStat.H.
References fileStat::status_.
Referenced by Foam::fileSize(), Foam::lastModified(), Foam::mode(), fileStat::sameDevice(), and fileStat::sameINode().
|
inline |
Did constructor fail.
Definition at line 99 of file fileStat.H.
References fileStat::isValid_.
Referenced by Foam::fileSize(), Foam::lastModified(), and Foam::mode().
bool sameDevice | ( | const fileStat & | stat2 | ) | const |
Compare two fileStats for same device.
Definition at line 77 of file fileStat.C.
References fileStat::status().
bool sameINode | ( | const fileStat & | stat2 | ) | const |
Compare two fileStats for same Inode.
Definition at line 88 of file fileStat.C.
References fileStat::status().
bool sameINode | ( | const label | iNode | ) | const |
Compare state against inode.
Definition at line 94 of file fileStat.C.
|
private |
Definition at line 69 of file fileStat.H.
Referenced by Foam::operator<<(), Foam::operator>>(), and fileStat::status().
|
private |
Definition at line 71 of file fileStat.H.
Referenced by fileStat::isValid(), Foam::operator<<(), and Foam::operator>>().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.