VTK
/Users/kitware/Dashboards/MyTests/VTK_BLD_Release_docs/Utilities/Doxygen/dox/Common/Core/vtkTimeStamp.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkTimeStamp.h
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00028 #ifndef vtkTimeStamp_h
00029 #define vtkTimeStamp_h
00030 
00031 #include "vtkCommonCoreModule.h" // For export macro
00032 #include "vtkSystemIncludes.h"
00033 
00034 class VTKCOMMONCORE_EXPORT vtkTimeStamp
00035 {
00036 public:
00037   vtkTimeStamp() {this->ModifiedTime = 0;};
00038   static vtkTimeStamp *New();
00039   void Delete() {delete this;};
00040 
00048   void Modified();
00049 
00051   unsigned long GetMTime() const {return this->ModifiedTime;};
00052 
00054 
00055   bool operator>(vtkTimeStamp& ts) {
00056     return (this->ModifiedTime > ts.ModifiedTime);};
00057   bool operator<(vtkTimeStamp& ts) {
00058     return (this->ModifiedTime < ts.ModifiedTime);};
00060 
00062   operator unsigned long() const {return this->ModifiedTime;};
00063 
00064 private:
00065   unsigned long ModifiedTime;
00066 };
00067 
00068 #endif
00069 // VTK-HeaderTest-Exclude: vtkTimeStamp.h