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: 2009-03-03 15:10:09 $
00007   Version:   $Revision: 1.22 $
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 
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 } // end namespace itk
00102   
00103 #endif
00104 

Generated at Tue Sep 15 05:09:15 2009 for ITK by doxygen 1.5.8 written by Dimitri van Heesch, © 1997-2000