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

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 =========================================================================*/
00041 #ifndef __vtkTimeStamp_h
00042 #define __vtkTimeStamp_h
00043 
00044 #include "vtkSystemIncludes.h"
00045 
00046 class VTK_COMMON_EXPORT vtkTimeStamp 
00047 {
00048 public:
00049   vtkTimeStamp() {this->ModifiedTime = 0;};
00050   static vtkTimeStamp *New();
00051   void Delete() {delete this;};
00052 
00053   virtual const char *GetClassName() {return "vtkTimeStamp";};
00054 
00062   void Modified();
00063 
00065   unsigned long int GetMTime() {return this->ModifiedTime;};
00066 
00068 
00069   int operator>(vtkTimeStamp& ts) {
00070     return (this->ModifiedTime > ts.ModifiedTime);};
00071   int operator<(vtkTimeStamp& ts) {
00072     return (this->ModifiedTime < ts.ModifiedTime);};
00074 
00076   operator unsigned long() {return this->ModifiedTime;};
00077 
00078 private:
00079   unsigned long ModifiedTime;
00080 };
00081 
00082 #endif