16int main(
int argc,
char* argv[])
24 JParser<> zap(
"Example program to print status of file.");
30 catch(
const exception &error) {
31 FATAL(error.what() << endl);
37 const JStat jas(file_name.c_str());
41 cout <<
"UID " << jas.
getUID() << endl;
42 cout <<
"GID " << jas.
getGID() << endl;
43 cout <<
"Size [B] " << jas.
getSize() << endl;
50 cout <<
"error: " << file_name << std::endl;
General purpose messaging.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
int main(int argc, char *argv[])
Utility class to parse command line options.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary class for file status.
off_t getSize() const
Get size of file.
JDateAndTime getTimeOfLastChange() const
Get time of last change.
uid_t getUID() const
Get UID of file.
JDateAndTime getTimeOfLastModification() const
Get time of last modification.
uid_t getGID() const
Get GID of file.
int getError() const
Get error of last call.
JDateAndTime getTimeOfLastAccess() const
Get time of last access.