Orfeo Toolbox  3.16
itkTimeStamp.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Insight Segmentation & Registration Toolkit
4  Module: $RCSfile: itkTimeStamp.h,v $
5  Language: C++
6  Date: $Date: 2009-03-03 15:10:09 $
7  Version: $Revision: 1.22 $
8 
9  Copyright (c) Insight Software Consortium. All rights reserved.
10  See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
11 
12  Portions of this code are covered under the VTK copyright.
13  See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm for details.
14 
15  This software is distributed WITHOUT ANY WARRANTY; without even
16  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
17  PURPOSE. See the above copyright notices for more information.
18 
19 =========================================================================*/
20 #ifndef __itkTimeStamp_h
21 #define __itkTimeStamp_h
22 
23 #include "itkMacro.h"
24 
25 namespace itk
26 {
27 
50 {
51 public:
53  typedef TimeStamp Self;
54 
57  static Self* New();
58 
62  {m_ModifiedTime = 0;}
63 
65  void Delete()
66  {delete this;}
67 
69  static const char *GetNameOfClass()
70  {return "TimeStamp";}
71 
79  void Modified();
80 
82  unsigned long GetMTime() const
83  {return m_ModifiedTime;}
84 
86  bool operator>(TimeStamp& ts)
87  {return (m_ModifiedTime > ts.m_ModifiedTime);}
88  bool operator<(TimeStamp& ts)
89  {return (m_ModifiedTime < ts.m_ModifiedTime);}
90 
92  operator unsigned long() const
93  {return m_ModifiedTime;}
94 
95 private:
96  unsigned long m_ModifiedTime;
97 };
98 
99 
100 } // end namespace itk
101 
102 #endif

Generated at Sun Feb 3 2013 00:10:03 for Orfeo Toolbox with doxygen 1.8.1.1