VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Common
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
33
class
VTK_COMMON_EXPORT
vtkTimeStamp
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
Generated on Thu Mar 13 2014 08:09:50 for VTK by
1.8.1.2