Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkTimeStamp.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkTimeStamp.h,v $ 00005 Language: C++ 00006 Date: $Date: 2003/09/10 14:29:28 $ 00007 Version: $Revision: 1.19 $ 00008 00009 Copyright (c) Insight Software Consortium. All rights reserved. 00010 See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details. 00011 00012 Portions of this code are covered under the VTK copyright. 00013 See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm for details. 00014 00015 This software is distributed WITHOUT ANY WARRANTY; without even 00016 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00017 PURPOSE. See the above copyright notices for more information. 00018 00019 =========================================================================*/ 00020 #ifndef __itkTimeStamp_h 00021 #define __itkTimeStamp_h 00022 00023 #include "itkMacro.h" 00024 00025 namespace itk 00026 { 00027 00039 class ITKCommon_EXPORT TimeStamp 00040 { 00041 public: 00043 typedef TimeStamp Self; 00044 00047 static Self* New(); 00048 00051 TimeStamp() 00052 {m_ModifiedTime = 0;} 00053 00055 void Delete() 00056 {delete this;} 00057 00059 static const char *GetNameOfClass() 00060 {return "TimeStamp";} 00061 00069 void Modified(); 00070 00072 unsigned long int GetMTime() const 00073 {return m_ModifiedTime;}; 00074 00076 int operator>(TimeStamp& ts) 00077 {return (m_ModifiedTime > ts.m_ModifiedTime);} 00078 int operator<(TimeStamp& ts) 00079 {return (m_ModifiedTime < ts.m_ModifiedTime);} 00080 00082 operator unsigned long() const 00083 {return m_ModifiedTime;} 00084 00085 private: 00086 unsigned long m_ModifiedTime; 00087 }; 00088 00089 00090 } // end namespace itk 00091 00092 #endif

Generated at Sat Mar 31 02:30:33 2007 for ITK by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2000