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 Language: C++ 00006 00007 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 00008 All rights reserved. 00009 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00010 00011 This software is distributed WITHOUT ANY WARRANTY; without even 00012 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00013 PURPOSE. See the above copyright notice for more information. 00014 00015 =========================================================================*/ 00032 #ifndef __vtkTimeStamp_h 00033 #define __vtkTimeStamp_h 00034 00035 #include "vtkSystemIncludes.h" 00036 00037 class VTK_COMMON_EXPORT vtkTimeStamp 00038 { 00039 public: 00040 vtkTimeStamp() {this->ModifiedTime = 0;}; 00041 static vtkTimeStamp *New(); 00042 void Delete() {delete this;}; 00043 00044 virtual const char *GetClassName() {return "vtkTimeStamp";}; 00045 00053 void Modified(); 00054 00056 unsigned long int GetMTime() {return this->ModifiedTime;}; 00057 00059 00060 int operator>(vtkTimeStamp& ts) { 00061 return (this->ModifiedTime > ts.ModifiedTime);}; 00062 int operator<(vtkTimeStamp& ts) { 00063 return (this->ModifiedTime < ts.ModifiedTime);}; 00065 00067 operator unsigned long() {return this->ModifiedTime;}; 00068 00069 private: 00070 unsigned long ModifiedTime; 00071 }; 00072 00073 #endif