Wrapper for stat() system call. More...
#include <OSspecific/fileStat.H>
Wrapper for stat() system call.
Definition at line 66 of file fileStat.H.
Public Member Functions | |
| fileStat () | |
| Empty constructor.  
 | |
| fileStat (const fileName &fName, const unsigned int maxTime=0) | |
| Construct from components.  
 | |
| fileStat (Istream &) | |
| Construct from Istream.  
 | |
| struct stat & | status () const | 
| Raw status.  
 | |
| bool | isValid () const | 
| Did constructor fail.  
 | |
| bool | sameDevice (const fileStat &stat2) const | 
| compare two fileStats for same device  
 | |
| bool | sameINode (const fileStat &stat2) const | 
| compare two fileStats for same Inode  
 | |
| bool | sameINode (const label iNode) const | 
| compare state against inode  
 | |
Friends | |
| Istream & | operator>> (Istream &, fileStat &) | 
| Ostream & | operator<< (Ostream &, const fileStat &) | 
| fileStat | ( | ) | 
Empty constructor.
Definition at line 36 of file fileStat.C.
Construct from Istream.
Definition at line 66 of file fileStat.C.
| struct stat& status | ( | ) |  const [inline, read]
 | 
        
Raw status.
Definition at line 94 of file fileStat.H.
Referenced by Foam::fileSize(), Foam::lastModified(), Foam::mode(), fileStat::sameDevice(), and fileStat::sameINode().
| bool isValid | ( | ) |  const [inline]
 | 
        
Did constructor fail.
Definition at line 100 of file fileStat.H.
Referenced by Foam::fileSize(), Foam::lastModified(), and Foam::mode().
| bool sameDevice | ( | const fileStat & | stat2 ) | const | 
compare two fileStats for same device
Definition at line 74 of file fileStat.C.
References fileStat::status().
| bool sameINode | ( | const fileStat & | stat2 ) | const | 
compare two fileStats for same Inode
Definition at line 85 of file fileStat.C.
References fileStat::status().
| bool sameINode | ( | const label | iNode ) | const | 
compare state against inode
Definition at line 91 of file fileStat.C.