Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members Related Pages
Common/vtkTimeStamp.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00045 #ifndef __vtkTimeStamp_h
00046 #define __vtkTimeStamp_h
00047
00048 #include "vtkSystemIncludes.h"
00049
00050 class VTK_COMMON_EXPORT vtkTimeStamp
00051 {
00052 public:
00053 vtkTimeStamp() {this->ModifiedTime = 0;};
00054 static vtkTimeStamp *New();
00055 void Delete() {delete this;};
00056
00057 virtual const char *GetClassName() {return "vtkTimeStamp";};
00058
00066 void Modified();
00067
00069 unsigned long int GetMTime() {return this->ModifiedTime;};
00070
00072
00073 int operator>(vtkTimeStamp& ts) {
00074 return (this->ModifiedTime > ts.ModifiedTime);};
00075 int operator<(vtkTimeStamp& ts) {
00076 return (this->ModifiedTime < ts.ModifiedTime);};
00078
00080 operator unsigned long() {return this->ModifiedTime;};
00081
00082 private:
00083 unsigned long ModifiedTime;
00084 };
00085
00086 #endif