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