Go to the documentation of this file. 1 #ifndef __JSYSTEM__JSTAT__
2 #define __JSYSTEM__JSTAT__
57 return this->
error == 0;
69 if (::stat(file_name, static_cast<stat*>(
this)) != 0)
86 return get(file_name);
119 return this->st_size;
Auxiliary class for file status.
JStat(const char *file_name)
Constructor.
JDateAndTime getTimeOfLastAccess() const
Get time of last access.
Interface for status of object.
uid_t getGID() const
Get GID of file.
JDateAndTime getTimeOfLastModification() const
Get time of last modification.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
int getError() const
Get error of last call.
Auxiliary classes and methods for operating system calls.
static JStat getFileStatus
Function object for file status.
JDateAndTime getTimeOfLastChange() const
Get time of last change.
Auxililary class to get date and time.
int error
error code from last call
virtual bool getStatus() const
Get status of object.
JStat()
Default constructor.
const JStat & operator()(const char *file_name)
Get status of file.
const JStat & get(const char *file_name)
Get status of file.
off_t getSize() const
Get size of file.
uid_t getUID() const
Get UID of file.