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: 2007/11/19 16:01:30 $
00007   Version:   $Revision: 1.20 $
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 GetMTime() const
00073     {return m_ModifiedTime;};
00074 
00076   bool operator>(TimeStamp& ts) 
00077     {return (m_ModifiedTime > ts.m_ModifiedTime);}
00078   bool operator<(TimeStamp& ts) 
00079     {return (m_ModifiedTime < ts.m_ModifiedTime);}
00081 
00083   operator unsigned long() const
00084     {return m_ModifiedTime;}
00085 
00086 private:
00087   unsigned long m_ModifiedTime;
00088 };
00089 
00090   
00091 } // end namespace itk
00092   
00093 #endif
00094 

Generated at Tue Jul 29 22:54:59 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000