VTK
dox
opt
build
vtk6-6.3.0+dfsg2
Common
Core
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
34
class
VTKCOMMONCORE_EXPORT
vtkTimeStamp
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
VTKCOMMONCORE_EXPORT
#define VTKCOMMONCORE_EXPORT
Definition:
vtkCommonCoreModule.h:15
vtkTimeStamp
record modification and/or execution time
Definition:
vtkTimeStamp.h:35
vtkTimeStamp::GetMTime
unsigned long GetMTime() const
Definition:
vtkTimeStamp.h:51
vtkTimeStamp::Delete
void Delete()
Definition:
vtkTimeStamp.h:39
vtkTimeStamp::operator>
bool operator>(vtkTimeStamp &ts)
Definition:
vtkTimeStamp.h:55
vtkTimeStamp::New
static vtkTimeStamp * New()
vtkTimeStamp::Modified
void Modified()
vtkCommonCoreModule.h
vtkTimeStamp::operator<
bool operator<(vtkTimeStamp &ts)
Definition:
vtkTimeStamp.h:57
vtkTimeStamp::vtkTimeStamp
vtkTimeStamp()
Definition:
vtkTimeStamp.h:37
vtkSystemIncludes.h
Generated by
1.8.20