43 #ifndef Foam_fileStat_H 44 #define Foam_fileStat_H 47 #include <sys/types.h> 60 Istream&
operator>>(Istream& is, fileStat& fs);
95 const bool followLink =
true,
96 const unsigned int maxTime = 0
110 const bool followLink =
true,
111 const unsigned int maxTime = 0
129 explicit operator bool()
const noexcept friend Ostream & operator<<(Ostream &os, const fileStat &fs)
A class for handling file names.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
fileStat()
Default construct.
bool good() const noexcept
True if file-stat was successful.
const struct stat & status() const noexcept
The raw status.
double dmodTime() const
The modification time in seconds (nanosecond resolution), 0 for an invalid file-stat.
Istream & operator>>(Istream &, directionInfo &)
label size() const
Size in bytes, 0 for an invalid file-stat.
time_t modTime() const
The modification time in seconds, 0 for an invalid file-stat.
bool sameINode(const fileStat &other) const
Compare two fileStats for same Inode.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
Wrapper for stat() and lstat() system calls.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
bool sameDevice(const fileStat &other) const
Compare two fileStats for same device.
friend Istream & operator>>(Istream &is, fileStat &fs)
bool valid() const noexcept
True if file-stat was successful.