Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

dox/Common/vtkTimeStamp.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkTimeStamp.h,v $ 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 "vtkSystemIncludes.h" 00032 00033 class VTK_COMMON_EXPORT vtkTimeStamp 00034 { 00035 public: 00036 vtkTimeStamp() {this->ModifiedTime = 0;}; 00037 static vtkTimeStamp *New(); 00038 void Delete() {delete this;}; 00039 00040 virtual const char *GetClassName() {return "vtkTimeStamp";}; 00041 00049 void Modified(); 00050 00052 unsigned long int GetMTime() {return this->ModifiedTime;}; 00053 00055 00056 int operator>(vtkTimeStamp& ts) { 00057 return (this->ModifiedTime > ts.ModifiedTime);}; 00058 int operator<(vtkTimeStamp& ts) { 00059 return (this->ModifiedTime < ts.ModifiedTime);}; 00061 00063 operator unsigned long() {return this->ModifiedTime;}; 00064 00065 private: 00066 unsigned long ModifiedTime; 00067 }; 00068 00069 #endif