1 #ifndef __JSYSTEM__JSTAT__
2 #define __JSYSTEM__JSTAT__
17 namespace JPP {
using namespace JSYSTEM; }
57 return this->
error == 0;
67 const JStat&
get(
const char* file_name)
69 if (::stat(file_name, static_cast<stat*>(
this)) != 0)
86 return get(file_name);
119 return this->st_size;
uid_t getUID() const
Get UID of file.
uid_t getGID() const
Get GID of file.
JStat(const char *file_name)
Constructor.
JDateAndTime getTimeOfLastAccess() const
Get time of last access.
JDateAndTime getTimeOfLastModification() const
Get time of last modification.
int getError() const
Get error of last call.
int error
error code from last call
JDateAndTime getTimeOfLastChange() const
Get time of last change.
static JStat getFileStatus
Function object for file status.
JStat()
Default constructor.
Auxililary class to get date and time.
Auxiliary class for file status.
Interface for status of object.
virtual bool getStatus() const override
Get status of object.
off_t getSize() const
Get size of file.
const JStat & operator()(const char *file_name)
Get status of file.