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

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 =========================================================================*/
00045 #ifndef __vtkTimeStamp_h
00046 #define __vtkTimeStamp_h
00047 
00048 #include "vtkSystemIncludes.h"
00049 
00050 class VTK_COMMON_EXPORT vtkTimeStamp 
00051 {
00052 public:
00053   vtkTimeStamp() {this->ModifiedTime = 0;};
00054   static vtkTimeStamp *New();
00055   void Delete() {delete this;};
00056 
00057   virtual const char *GetClassName() {return "vtkTimeStamp";};
00058 
00066   void Modified();
00067 
00069   unsigned long int GetMTime() {return this->ModifiedTime;};
00070 
00072 
00073   int operator>(vtkTimeStamp& ts) {
00074     return (this->ModifiedTime > ts.ModifiedTime);};
00075   int operator<(vtkTimeStamp& ts) {
00076     return (this->ModifiedTime < ts.ModifiedTime);};
00078 
00080   operator unsigned long() {return this->ModifiedTime;};
00081 
00082 private:
00083   unsigned long ModifiedTime;
00084 };
00085 
00086 #endif