00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00028 #ifndef __vtkTimeStamp_h
00029 #define __vtkTimeStamp_h
00030
00031 #include "vtkSystemIncludes.h"
00032
00033 class VTK_COMMON_EXPORT vtkTimeStamp
00034 {
00035 public:
00036 vtkTimeStamp() {this->ModifiedTime = 0;};
00037 static vtkTimeStamp *New();
00038 void Delete() {delete this;};
00039
00047 void Modified();
00048
00050 unsigned long GetMTime() const {return this->ModifiedTime;};
00051
00053
00054 bool operator>(vtkTimeStamp& ts) {
00055 return (this->ModifiedTime > ts.ModifiedTime);};
00056 bool operator<(vtkTimeStamp& ts) {
00057 return (this->ModifiedTime < ts.ModifiedTime);};
00059
00061 operator unsigned long() const {return this->ModifiedTime;};
00062
00063 private:
00064 unsigned long ModifiedTime;
00065 };
00066
00067 #endif