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 "vtkSystemIncludes.h"
32 
34 {
35 public:
36  vtkTimeStamp() {this->ModifiedTime = 0;};
37  static vtkTimeStamp *New();
38  void Delete() {delete this;};
39 
47  void Modified();
48 
50  unsigned long GetMTime() const {return this->ModifiedTime;};
51 
53 
54  bool operator>(vtkTimeStamp& ts) {
55  return (this->ModifiedTime > ts.ModifiedTime);};
56  bool operator<(vtkTimeStamp& ts) {
57  return (this->ModifiedTime < ts.ModifiedTime);};
59 
61  operator unsigned long() const {return this->ModifiedTime;};
62 
63 private:
64  unsigned long ModifiedTime;
65 };
66 
67 #endif
unsigned long GetMTime() const
Definition: vtkTimeStamp.h:50
void Delete()
Definition: vtkTimeStamp.h:38
bool operator>(vtkTimeStamp &ts)
Definition: vtkTimeStamp.h:54
record modification and/or execution time
Definition: vtkTimeStamp.h:33
#define VTK_COMMON_EXPORT
bool operator<(vtkTimeStamp &ts)
Definition: vtkTimeStamp.h:56