VTK
vtkTimeStamp.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTimeStamp.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
28 #ifndef vtkTimeStamp_h
29 #define vtkTimeStamp_h
30 
31 #include "vtkCommonCoreModule.h" // For export macro
32 #include "vtkSystemIncludes.h"
33 
35 {
36 public:
37  vtkTimeStamp() {this->ModifiedTime = 0;};
38  static vtkTimeStamp *New();
39  void Delete() {delete this;};
40 
48  void Modified();
49 
51  unsigned long GetMTime() const {return this->ModifiedTime;};
52 
54 
55  bool operator>(vtkTimeStamp& ts) {
56  return (this->ModifiedTime > ts.ModifiedTime);};
57  bool operator<(vtkTimeStamp& ts) {
58  return (this->ModifiedTime < ts.ModifiedTime);};
60 
62  operator unsigned long() const {return this->ModifiedTime;};
63 
64 private:
65  unsigned long ModifiedTime;
66 };
67 
68 #endif
69 // VTK-HeaderTest-Exclude: vtkTimeStamp.h
unsigned long GetMTime() const
Definition: vtkTimeStamp.h:51
#define VTKCOMMONCORE_EXPORT
void Delete()
Definition: vtkTimeStamp.h:39
bool operator>(vtkTimeStamp &ts)
Definition: vtkTimeStamp.h:55
record modification and/or execution time
Definition: vtkTimeStamp.h:34
bool operator<(vtkTimeStamp &ts)
Definition: vtkTimeStamp.h:57