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;
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary classes and methods for operating system calls.
static JStat getFileStatus
Function object for file status.
Interface for status of object.
Auxiliary class for date and time.
Auxiliary class for file status.
JStat(const char *file_name)
Constructor.
const JStat & get(const char *file_name)
Get status of file.
off_t getSize() const
Get size of file.
JStat()
Default constructor.
JDateAndTime getTimeOfLastChange() const
Get time of last change.
uid_t getUID() const
Get UID of file.
JDateAndTime getTimeOfLastModification() const
Get time of last modification.
virtual bool getStatus() const override
Get status of object.
const JStat & operator()(const char *file_name)
Get status of file.
uid_t getGID() const
Get GID of file.
int getError() const
Get error of last call.
JDateAndTime getTimeOfLastAccess() const
Get time of last access.
int error
error code from last call