itkTimeStamp.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __itkTimeStamp_h
00021 #define __itkTimeStamp_h
00022
00023 #include "itkMacro.h"
00024
00025 namespace itk
00026 {
00027
00049 class ITKCommon_EXPORT TimeStamp
00050 {
00051 public:
00053 typedef TimeStamp Self;
00054
00057 static Self* New();
00058
00061 TimeStamp()
00062 {m_ModifiedTime = 0;}
00063
00065 void Delete()
00066 {delete this;}
00067
00069 static const char *GetNameOfClass()
00070 {return "TimeStamp";}
00071
00079 void Modified();
00080
00082 unsigned long GetMTime() const
00083 {return m_ModifiedTime;}
00084
00086 bool operator>(TimeStamp& ts)
00087 {return (m_ModifiedTime > ts.m_ModifiedTime);}
00088 bool operator<(TimeStamp& ts)
00089 {return (m_ModifiedTime < ts.m_ModifiedTime);}
00091
00093 operator unsigned long() const
00094 {return m_ModifiedTime;}
00095
00096 private:
00097 unsigned long m_ModifiedTime;
00098 };
00099
00100
00101 }
00102
00103 #endif
00104