00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef __OP_Stat__
00029 #define __OP_Stat__
00030
00031 #include "OP_API.h"
00032 #include <iostream.h>
00033 #include <sys/types.h>
00034 class UT_IStream;
00035
00036 class OP_API OP_Stat {
00037 public:
00038 OP_Stat();
00039 ~OP_Stat();
00040
00041 bool load(UT_IStream &is, unsigned *permission);
00042 int save(ostream &os, unsigned permission=0777);
00043
00044 void touch();
00045
00046 time_t getCreateTime() const { return myCreateTime; }
00047 time_t getModifyTime() const { return myModifyTime; }
00048 int getAuthorId() const { return myAuthor; }
00049 const char *getAuthor() const;
00050
00051 void setAuthor(const char *name);
00052
00053 private:
00054 time_t myCreateTime;
00055 time_t myModifyTime;
00056 int myAuthor;
00057 };
00058
00059 #endif