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 =========================================================================*/
29 #ifndef vtkTimeStamp_h
30 #define vtkTimeStamp_h
31 
32 #include "vtkCommonCoreModule.h" // For export macro
33 #include "vtkSystemIncludes.h"
34 
35 class VTKCOMMONCORE_EXPORT vtkTimeStamp
36 {
37 public:
38  vtkTimeStamp() {this->ModifiedTime = 0;};
39  static vtkTimeStamp *New();
40  void Delete() {delete this;};
41 
52  void Modified();
53 
57  vtkMTimeType GetMTime() const {return this->ModifiedTime;};
58 
60 
63  bool operator>(vtkTimeStamp& ts) {
64  return (this->ModifiedTime > ts.ModifiedTime);};
65  bool operator<(vtkTimeStamp& ts) {
66  return (this->ModifiedTime < ts.ModifiedTime);};
68 
72  operator vtkMTimeType() const {return this->ModifiedTime;};
73 
74 private:
75  vtkMTimeType ModifiedTime;
76 };
77 
78 #endif
79 // VTK-HeaderTest-Exclude: vtkTimeStamp.h
void Delete()
Definition: vtkTimeStamp.h:40
bool operator>(vtkTimeStamp &ts)
Support comparisons of time stamp objects directly.
Definition: vtkTimeStamp.h:63
record modification and/or execution time
Definition: vtkTimeStamp.h:35
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248
bool operator<(vtkTimeStamp &ts)
Support comparisons of time stamp objects directly.
Definition: vtkTimeStamp.h:65
vtkMTimeType GetMTime() const
Return this object's Modified time.
Definition: vtkTimeStamp.h:57